Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.
SpecifiedTaxRegistration occurs more than once in BuyerTradeParty. This element may appear there no more than once.
The rule limits the buyer’s tax registration entries in this section to one.
SpecifiedTaxRegistration appears more than once in the buyer section of the invoice. You can adjust the XML section so that this element appears there no more than once.
- Locate
BuyerTradePartyin the invoice header. - Check how many times
SpecifiedTaxRegistrationoccurs inside it. - Remove any occurrences beyond the first.
- 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 counted and checked against a maximum of one.
The rule applies within the buyer section BuyerTradeParty in the invoice header.
rule/@context)assert/@test)