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