Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.
SpecifiedTaxRegistration occurs more than once in BuyerAgentTradeParty. This element may appear there at most once.
The XML structure allows at most one tax registration element for the buyer agent. Multiple occurrences do not conform to this structure.
The invoice contains multiple SpecifiedTaxRegistration elements for the buyer agent. You can resolve this by limiting the number of these elements to one.
- Find
SpecifiedTaxRegistrationwithinBuyerAgentTradeParty. - Remove the extra occurrences so that no more than one element remains.
- Generate the invoice again and validate it once more.
<ram:BuyerAgentTradeParty> <ram:SpecifiedTaxRegistration/> <ram:SpecifiedTaxRegistration/> </ram:BuyerAgentTradeParty>
<ram:BuyerAgentTradeParty> <ram:SpecifiedTaxRegistration/> </ram:BuyerAgentTradeParty>
Technical details
The test counts the direct SpecifiedTaxRegistration child elements of BuyerAgentTradeParty and requires the count to be less than or equal to one.
The rule applies to the SpecifiedTaxRegistration element within BuyerAgentTradeParty.
rule/@context)assert/@test)