Element 'ram:TypeCode' must occur exactly 1 times.
ram:TypeCode must occur exactly once in ram:ApplicableTradeTax. The element is missing or occurs more than once.
ram:TypeCode identifies the type of tax to which the VAT breakdown relates. The value must be present unambiguously.
The tax type is missing from the invoice’s VAT section or appears more than once. You can resolve this by having exactly one occurrence there.
- Locate the relevant
ram:ApplicableTradeTax. - Check that
ram:TypeCodeoccurs exactly once within it. - Generate the invoice again and validate it once more.
Technical details
The XPath test uses count(ram:TypeCode)=1 to require exactly one direct child element named ram:TypeCode.
The rule applies to each ram:ApplicableTradeTax in the document-level VAT breakdown.
rule/@context)assert/@test)