Element 'ram:RoleCode' may occur at maximum 1 times.
ram:RoleCode occurs more than once within ram:PayerTradeParty. The element may occur no more than once.
The payer’s role code is provided no more than once in this XML context.
ram:RoleCode appears more than once in ram:PayerTradeParty. You can adjust the XML so that the element occurs no more than once.
- Find
ram:PayerTradePartyin the invoice. - Check whether it contains more than one
ram:RoleCodeelement. - Remove any extra
ram:RoleCodeelements, or omit the element if no role code is provided. - Generate the invoice again and validate it.
<ram:PayerTradeParty> <ram:RoleCode/> <ram:RoleCode/> </ram:PayerTradeParty>
<ram:PayerTradeParty> <ram:RoleCode/> </ram:PayerTradeParty>
Technical details
The rule counts direct ram:RoleCode elements under ram:PayerTradeParty and permits zero or one occurrence.
The rule applies to the role code within document-level ram:PayerTradeParty.
rule/@context)assert/@test)