Element 'ram:RoleCode' may occur at maximum 1 times.
The ram:RoleCode element occurs more than once within ram:ShipToTradeParty. This element may appear there no more than once.
ram:RoleCode contains a role designation for ram:ShipToTradeParty. The rule limits this element to one occurrence.
The delivery recipient contains ram:RoleCode more than once. You can resolve the issue by limiting it to no more than one element.
- Locate
ram:ShipToTradePartyin the invoice line’s delivery information. - Remove extra
ram:RoleCodeelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:ShipToTradeParty> <ram:RoleCode>A</ram:RoleCode> <ram:RoleCode>B</ram:RoleCode> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:RoleCode>A</ram:RoleCode> </ram:ShipToTradeParty>
Technical details
The test counts the direct ram:RoleCode elements within ram:ShipToTradeParty and passes when no more than one is present.
The rule applies within ram:ShipToTradeParty in the delivery information for an invoice line.
rule/@context)assert/@test)