Element 'ram:RoleCode' may occur at maximum 1 times.
PayeeTradeParty contains more than one ram:RoleCode element.
The payee’s role designation may occur at most once in this element.
The payee has more than one ram:RoleCode element. You can resolve this by keeping no more than one such element.
- Open
PayeeTradeParty. - Make sure it contains no more than one
ram:RoleCodeelement. - Generate the invoice again and validate it.
<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 rule limits the number of ram:RoleCode elements in PayeeTradeParty to one at most.
This rule applies to PayeeTradeParty, the payee, and its ram:RoleCode element.
rule/@context)assert/@test)