Element 'ram:RoleCode' may occur at maximum 1 times.
ram:RoleCode occurs more than once in ram:PayerTradeParty. The element may occur at most once.
The rule limits the payer's role code to at most one element.
More than one ram:RoleCode is present for the payer. You can resolve this by including only one such element.
- Locate the
ram:RoleCodeelements inram:PayerTradeParty. - Remove the extra elements so that no more than one remains.
- Generate the invoice again and validate it.
<ram:PayerTradeParty> <ram:RoleCode>1</ram:RoleCode> <ram:RoleCode>2</ram:RoleCode> </ram:PayerTradeParty>
<ram:PayerTradeParty> <ram:RoleCode>1</ram:RoleCode> </ram:PayerTradeParty>
Technical details
The rule counts the direct ram:RoleCode elements within ram:PayerTradeParty and requires no more than one.
The number of ram:RoleCode elements is checked in ram:PayerTradeParty within the settlement information.
rule/@context)assert/@test)