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