Element 'ram:TypeCode' must occur exactly 1 times.
ram:AppliedTradeTax is missing ram:TypeCode, or the element occurs more than once. It must occur exactly once.
ram:TypeCode identifies the type of tax to which the tax information relates. A missing or repeated tax type makes this information structurally ambiguous or incomplete.
The tax information does not contain the tax type exactly once. Including a single ram:TypeCode resolves this issue.
- Check
ram:AppliedTradeTaxand make sureram:TypeCodeoccurs exactly once. - Regenerate the invoice and validate it again.
<ram:AppliedTradeTax/>
<ram:AppliedTradeTax> <ram:TypeCode/> </ram:AppliedTradeTax>
Technical details
The Schematron test counts the direct ram:TypeCode 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)