Element 'ram:CategoryCode' must occur exactly 1 times.
The allowance’s tax information does not contain ram:CategoryCode exactly once. It is missing or occurs more than once.
The tax category code identifies the tax category of the allowance. Exactly one such code makes the classification unambiguous.
The allowance’s tax information is missing a tax category code or contains it more than once. Providing it once makes the category clear.
- Locate the allowance’s
ram:CategoryTradeTaxtax information. - Make sure it contains exactly one
ram:CategoryCodeelement. - Generate the invoice again and validate it again.
<ram:CategoryTradeTax/>
<ram:CategoryTradeTax> <ram:CategoryCode/> </ram:CategoryTradeTax>
Technical details
The test counts the direct child elements ram:CategoryCode within ram:CategoryTradeTax and requires a count of 1.
The rule applies to the ram:CategoryTradeTax tax information of a document-level allowance in ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)