Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.
There is more than one ram:SpecifiedTaxRegistration in ram:PayeeTradeParty. This element may occur no more than once.
The rule limits the payee's tax registration entry to no more than one so that the XML structure remains unambiguous.
The payee has multiple ram:SpecifiedTaxRegistration elements. Remove the extra elements so that no more than one remains.
- Find all
ram:SpecifiedTaxRegistrationelements inram:PayeeTradeParty. - Remove any extra elements; the tax registration entry is optional.
- Regenerate the invoice and validate it again.
<ram:PayeeTradeParty> <ram:SpecifiedTaxRegistration/> <ram:SpecifiedTaxRegistration/> </ram:PayeeTradeParty>
<ram:PayeeTradeParty> <ram:SpecifiedTaxRegistration/> </ram:PayeeTradeParty>
Technical details
The check verifies that there is no more than one direct ram:SpecifiedTaxRegistration element in ram:PayeeTradeParty; the element is optional.
The rule applies to the payee details in ram:PayeeTradeParty.
rule/@context)assert/@test)