Element 'ram:RoleCode' may occur at maximum 1 times.
ram:RoleCode occurs more than once in ram:UltimateShipToTradeParty.
The ultimate ship-to party may have no more than one role code in this context.
ram:RoleCode is entered more than once for the ultimate ship-to party. You can resolve this by removing the duplicate entry.
- Remove any additional
ram:RoleCodeentries fromram:UltimateShipToTradeParty. - Regenerate the invoice and check it again.
<ram:UltimateShipToTradeParty> <ram:RoleCode>A</ram:RoleCode> <ram:RoleCode>B</ram:RoleCode> </ram:UltimateShipToTradeParty>
<ram:UltimateShipToTradeParty> <ram:RoleCode>A</ram:RoleCode> </ram:UltimateShipToTradeParty>
Technical details
The check counts the direct ram:RoleCode elements in the current ram:UltimateShipToTradeParty and permits at most one.
The rule applies to ram:RoleCode within ram:UltimateShipToTradeParty of an invoice line.
rule/@context)assert/@test)