Element 'ram:CategoryCode' must occur exactly 1 times.
The element ram:CategoryCode does not occur exactly once in ram:CategoryTradeTax. It is either missing or occurs more than once.
Exactly one ram:CategoryCode unambiguously specifies the VAT category of the charge.
ram:CategoryTradeTax for the charge is missing ram:CategoryCode, or the element occurs more than once. The rule requires exactly one.
- Locate
ram:CategoryTradeTaxin the charge. - Ensure that
ram:CategoryCodeoccurs exactly once in it. - Generate the invoice again and validate it.
<ram:CategoryTradeTax> <ram:TypeCode>VAT</ram:TypeCode> </ram:CategoryTradeTax>
<ram:CategoryTradeTax> <ram:CategoryCode>S</ram:CategoryCode> </ram:CategoryTradeTax>
Technical details
The test counts direct ram:CategoryCode children of ram:CategoryTradeTax and requires exactly one.
The rule applies to ram:CategoryTradeTax of a document-level charge.
rule/@context)assert/@test)