Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.
SpecifiedTaxRegistration occurs more than once in BuyerTradeParty. This element may occur there at most once.
The rule limits the buyer’s tax registration details to at most one entry.
The buyer details contain multiple SpecifiedTaxRegistration elements. You can adjust the XML structure so that it contains no more than one.
- Find the
SpecifiedTaxRegistrationelements inBuyerTradeParty. - Remove any excess elements so that no more than one remains.
- Generate the invoice again and validate it.
<ram:BuyerTradeParty> <ram:SpecifiedTaxRegistration/> <ram:SpecifiedTaxRegistration/> </ram:BuyerTradeParty>
<ram:BuyerTradeParty> <ram:SpecifiedTaxRegistration/> </ram:BuyerTradeParty>
Technical details
Within BuyerTradeParty, the number of direct SpecifiedTaxRegistration elements is checked to ensure it does not exceed one.
The rule applies to the buyer’s tax registration details in BuyerTradeParty in the invoice header.
rule/@context)assert/@test)