Element 'ram:ID' must occur exactly 1 times.
ram:ID does not occur exactly once in the relevant ram:SpecifiedTaxRegistration. The rule requires exactly one such element.
The rule ensures that the tax registration with schemeID="VA" contains exactly one identifier.
The item seller’s VA tax registration does not contain exactly one ram:ID element. You can check the number of identifier elements accordingly.
- Find the
ram:SpecifiedTaxRegistrationwithram:IDandschemeID="VA". - Check that it contains exactly one direct
ram:IDelement. - Generate the invoice again and validate it once more.
<ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">A</ram:ID> <ram:ID schemeID="VA">B</ram:ID> </ram:SpecifiedTaxRegistration>
<ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">A</ram:ID> </ram:SpecifiedTaxRegistration>
Technical details
The XPath test counts the direct ram:ID elements in the relevant ram:SpecifiedTaxRegistration and requires exactly one.
The rule applies to the item seller’s ram:SpecifiedTaxRegistration whose ram:ID has the schemeID="VA" attribute.
rule/@context)assert/@test)