Element 'ram:CalculatedAmount' must occur exactly 1 times.
ram:CalculatedAmount must occur exactly once in ram:ApplicableTradeTax. The element is missing or occurs more than once.
ram:CalculatedAmount contains the calculated tax amount for the relevant VAT breakdown. Exactly one occurrence is required so that this amount can be identified unambiguously.
The calculated tax amount 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:CalculatedAmountoccurs exactly once within it. - Generate the invoice again and validate it once more.
Technical details
The XPath test uses count(ram:CalculatedAmount)=1 to require exactly one direct child element named ram:CalculatedAmount.
The rule applies to each ram:ApplicableTradeTax in the document-level VAT breakdown.
rule/@context)assert/@test)