Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.
The ram:SpecifiedTaxRegistration element occurs more than once within ram:ShipToTradeParty. This element may appear there no more than once.
ram:SpecifiedTaxRegistration contains a tax registration entry for the delivery recipient. The rule limits this element to one occurrence.
The delivery recipient contains ram:SpecifiedTaxRegistration more than once. You can resolve the issue by limiting it to no more than one element.
- Locate
ram:ShipToTradePartyin the invoice line’s delivery information. - Remove extra
ram:SpecifiedTaxRegistrationelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:ShipToTradeParty> <ram:SpecifiedTaxRegistration/> <ram:SpecifiedTaxRegistration/> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:SpecifiedTaxRegistration/> </ram:ShipToTradeParty>
Technical details
The test counts the direct ram:SpecifiedTaxRegistration elements within ram:ShipToTradeParty and passes when no more than one is present.
The rule applies within ram:ShipToTradeParty in the delivery information for an invoice line.
rule/@context)assert/@test)