Element 'ram:RoleCode' may occur at maximum 1 times.
ram:InvoicerTradeParty contains more than one ram:RoleCode element.
At most one role code is provided for the invoicing party in this element context.
More than one ram:RoleCode element is present for the invoicing party. This element may occur no more than once in this part of the XML.
- Find
ram:InvoicerTradePartyin the settlement details. - Review its
ram:RoleCodeelements and remove any additional occurrences. - Generate the invoice again and validate it again.
<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 test counts the direct ram:RoleCode elements in ram:InvoicerTradeParty and allows no more than one.
The rule applies to ram:RoleCode within ram:InvoicerTradeParty in the settlement details.
rule/@context)assert/@test)