Element 'ram:RoleCode' may occur at maximum 1 times.
In InvoicerTradeParty, ram:RoleCode occurs more than once. The rule does not allow a second occurrence.
The role code describes the role of the invoice issuer. Multiple occurrences would provide more than one role value in this section.
ram:RoleCode occurs more than once in InvoicerTradeParty. You can adjust the XML so that it contains no more than one such element.
- Locate
InvoicerTradePartyin the settlement. - Check whether
ram:RoleCodeoccurs more than once and remove any extra occurrences. - Generate the invoice again and validate it once more.
<ram:InvoicerTradeParty> <ram:RoleCode>A</ram:RoleCode> <ram:RoleCode>B</ram:RoleCode> </ram:InvoicerTradeParty>
<ram:InvoicerTradeParty> <ram:RoleCode>A</ram:RoleCode> </ram:InvoicerTradeParty>
Technical details
The check counts the direct ram:RoleCode elements in InvoicerTradeParty and requires a count of at most 1.
Within InvoicerTradeParty in the settlement, ram:RoleCode may occur at most once.
rule/@context)assert/@test)