Element 'ram:ID' must occur exactly 1 times.
ram:ID does not occur exactly once under ram:SpecifiedTaxRegistration. It is either missing or appears more than once.
ram:SpecifiedTaxRegistration contains the party’s tax registration information. Exactly one ram:ID ensures that this information is present in the expected quantity.
The delivery recipient’s tax registration does not contain exactly one ram:ID element. You can resolve this by making sure there is one such element.
- Check the delivery recipient’s
ram:SpecifiedTaxRegistration. - Make sure it contains exactly one
ram:IDelement. - Generate the invoice again and validate it once more.
<ram:SpecifiedTaxRegistration/>
<ram:SpecifiedTaxRegistration> <ram:ID>123</ram:ID> </ram:SpecifiedTaxRegistration>
Technical details
The Schematron check counts the direct ram:ID elements under ram:SpecifiedTaxRegistration and requires a count of 1.
The rule applies to ram:SpecifiedTaxRegistration of the ram:ShipToTradeParty party on an invoice line.
rule/@context)assert/@test)