Element 'ram:RoleCode' may occur at maximum 1 times.
ram:RoleCode occurs more than once in ram:PayeeTradeParty. The element may occur at most once, but it may also be absent.
The role code describes the payee’s role. Repeating it would duplicate this role in the XML structure.
The payee’s role code has been entered more than once. Remove the duplicate so it occurs no more than once.
- Locate
ram:PayeeTradePartyin the payment terms. - Check its
ram:RoleCodeelements and remove any additional entries. - Regenerate the invoice and validate it again.
<ram:PayeeTradeParty> <ram:RoleCode>1</ram:RoleCode> <ram:RoleCode>2</ram:RoleCode> </ram:PayeeTradeParty>
<ram:PayeeTradeParty> <ram:RoleCode>1</ram:RoleCode> </ram:PayeeTradeParty>
Technical details
The rule counts the direct ram:RoleCode elements in ram:PayeeTradeParty and passes when the count is at most one.
The rule applies to the optional role code ram:RoleCode within the payee ram:PayeeTradeParty in the payment terms.
rule/@context)assert/@test)