Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.
ram:SpecifiedTaxRegistration occurs more than once in ram:ShipToTradeParty.
ram:SpecifiedTaxRegistration contains a tax registration reference for the ship-to party. The rule limits this element to at most one occurrence.
ram:SpecifiedTaxRegistration is provided more than once for the ship-to party. You can adjust the invoice so that it contains no more than one such element there.
- Find
ram:ShipToTradePartyfor the delivery address of the invoice line. - Count the
ram:SpecifiedTaxRegistrationelements it contains and remove any extra occurrences. - Regenerate the invoice and validate it again.
<ram:ShipToTradeParty> <ram:SpecifiedTaxRegistration/> <ram:SpecifiedTaxRegistration/> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:SpecifiedTaxRegistration/> </ram:ShipToTradeParty>
Technical details
The test counts the direct ram:SpecifiedTaxRegistration elements under ram:ShipToTradeParty and passes when their count is at most one.
The rule applies to ram:ShipToTradeParty for the delivery address of an invoice line.
rule/@context)assert/@test)