Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.
ram:SpecifiedTaxRegistration occurs more than once in ShipToTradeParty. The element may occur there no more than once.
The rule limits the tax-registration details for the delivery location to one entry.
The invoice contains more than one tax-registration entry for the delivery location. You can adjust the details so they occur no more than once.
- Find the
ram:SpecifiedTaxRegistrationelements inShipToTradeParty. - Remove duplicate entries so that no more than one element remains.
- Regenerate the invoice and check it again.
<ram:ShipToTradeParty> <ram:SpecifiedTaxRegistration/> <ram:SpecifiedTaxRegistration/> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:SpecifiedTaxRegistration/> </ram:ShipToTradeParty>
Technical details
The XPath test counts the direct ram:SpecifiedTaxRegistration elements in context and permits no more than one.
Applies to the delivery-location details in ShipToTradeParty.
rule/@context)assert/@test)