Element 'ram:RoleCode' may occur at maximum 1 times.
ram:RoleCode occurs more than once in ram:PayeeTradeParty. This element may appear at most once in this context.
The role code describes the payee’s role. The structure allows at most one such code.
ram:RoleCode appears more than once in ram:PayeeTradeParty. This section may contain the role code only once.
- Locate
ram:PayeeTradePartyin the payment terms. - Check the
ram:RoleCodeelements it contains and remove any extra occurrences. - Regenerate the invoice and validate it again.
<ram:PayeeTradeParty> <ram:RoleCode>A</ram:RoleCode> <ram:RoleCode>B</ram:RoleCode> </ram:PayeeTradeParty>
<ram:PayeeTradeParty> <ram:RoleCode>A</ram:RoleCode> </ram:PayeeTradeParty>
Technical details
The XPath test count(ram:RoleCode)<=1 allows zero or one ram:RoleCode element and rejects more than one.
The rule applies to ram:RoleCode within ram:PayeeTradeParty in the document-level payment terms.
rule/@context)assert/@test)