Element 'ram:RoleCode' may occur at maximum 1 times.
ram:RoleCode occurs more than once in ram:UltimateShipToTradeParty. This element may appear there no more than once.
ram:RoleCode identifies the role of the ultimate delivery recipient. Multiple occurrences would provide more than one role value for the same recipient.
The ultimate delivery recipient details contain ram:RoleCode more than once. You can resolve this by making the role entry unambiguous.
- Find
ram:RoleCodewithinram:UltimateShipToTradeParty. - Remove any extra occurrences so that the element appears no more than once.
- Generate the invoice again and validate it once more.
<ram:UltimateShipToTradeParty> <ram:RoleCode/> <ram:RoleCode/> </ram:UltimateShipToTradeParty>
<ram:UltimateShipToTradeParty> <ram:RoleCode/> </ram:UltimateShipToTradeParty>
Technical details
The number of direct ram:RoleCode elements within ram:UltimateShipToTradeParty is checked; zero or one is permitted.
The rule applies to the ultimate delivery recipient information in ram:UltimateShipToTradeParty in the invoice delivery section.
rule/@context)assert/@test)