Element 'ram:ID' must occur exactly 1 times.
ram:ID is missing from SpecifiedTaxRegistration or occurs more than once. The element must occur exactly once in this context.
ram:ID contains the tax registration identifier. Exactly one element is required to provide the registration unambiguously in this context.
ram:ID is missing from SpecifiedTaxRegistration for the ultimate ship-to party or is entered more than once. The rule expects exactly one identifier there.
- Locate
SpecifiedTaxRegistrationunderUltimateShipToTradeParty. - Make sure
ram:IDoccurs there exactly once. - Generate the invoice again and validate it.
<ram:SpecifiedTaxRegistration/>
<ram:SpecifiedTaxRegistration> <ram:ID>123</ram:ID> </ram:SpecifiedTaxRegistration>
Technical details
The test counts the direct ram:ID elements in SpecifiedTaxRegistration and requires the count to be 1.
The rule applies to ram:ID in SpecifiedTaxRegistration for the ultimate ship-to party.
rule/@context)assert/@test)