Element 'ram:RoleCode' may occur at maximum 1 times.
RoleCode occurs more than once in UltimateShipToTradeParty. This element may occur no more than once there.
The ultimate ship-to party details may contain at most one role code, so that the role is not stated more than once.
ram:RoleCode is stated more than once for the ultimate ship-to party. You can resolve this by having this element occur no more than once there.
- Find
ram:RoleCodewithinram:UltimateShipToTradeParty. - Remove the extra
ram:RoleCodeelements so that no more than one remains. - Generate the invoice again and check it once more.
<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 within UltimateShipToTradeParty and requires the count to be no greater than one.
The rule applies to the ultimate ship-to party details in UltimateShipToTradeParty at delivery level.
rule/@context)assert/@test)