Element 'ram:RoleCode' may occur at maximum 1 times.
ram:RoleCode occurs more than once in ram:UltimateShipToTradeParty. This element may occur no more than once there.
The rule limits the number of ram:RoleCode elements in ram:UltimateShipToTradeParty to zero or one.
Multiple ram:RoleCode elements are present in ram:UltimateShipToTradeParty. In this XML section, ram:RoleCode may occur no more than once.
- Check
ram:UltimateShipToTradePartyand remove any extraram:RoleCodeelements. - Generate the invoice again and validate it.
<ram:UltimateShipToTradeParty> <ram:RoleCode/> <ram:RoleCode/> </ram:UltimateShipToTradeParty>
<ram:UltimateShipToTradeParty> <ram:RoleCode/> </ram:UltimateShipToTradeParty>
Technical details
The rule checks that the number of direct ram:RoleCode elements in ram:UltimateShipToTradeParty is no greater than one.
The rule applies to ram:UltimateShipToTradeParty of an invoice line.
rule/@context)assert/@test)