Element 'ram:CategoryCode' must occur exactly 1 times.
ram:AppliedTradeTax is missing ram:CategoryCode, or the element occurs more than once. It must occur exactly once.
ram:CategoryCode specifies the tax category for the tax information. If the category is missing or repeated, the information is structurally incomplete or ambiguous.
The tax information does not contain the tax category exactly once. A single ram:CategoryCode resolves this issue.
- Check
ram:AppliedTradeTaxand make sureram:CategoryCodeoccurs exactly once. - Regenerate the invoice and validate it again.
<ram:AppliedTradeTax/>
<ram:AppliedTradeTax> <ram:CategoryCode/> </ram:AppliedTradeTax>
Technical details
The Schematron test counts the direct ram:CategoryCode elements in ram:AppliedTradeTax and requires exactly one.
The rule applies to ram:AppliedTradeTax within a document-level logistics service charge.
rule/@context)assert/@test)