Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once in ram:UltimateShipToTradeParty. This element may occur no more than once there.
The rule limits the number of identifiers for the ultimate delivery recipient to one.
ram:ID appears more than once in ram:UltimateShipToTradeParty. Keeping no more than one such element will resolve the issue.
- Find all
ram:IDelements inram:UltimateShipToTradeParty. - Keep no more than one
ram:IDelement there. - Generate the invoice again and validate it.
<ram:UltimateShipToTradeParty> <ram:ID>123</ram:ID> <ram:ID>456</ram:ID> </ram:UltimateShipToTradeParty>
<ram:UltimateShipToTradeParty> <ram:ID>123</ram:ID> </ram:UltimateShipToTradeParty>
Technical details
Within ram:UltimateShipToTradeParty, the count of direct ram:ID elements is checked; zero or one is allowed.
The rule applies to the identifier of the ultimate delivery recipient in ram:UltimateShipToTradeParty.
rule/@context)assert/@test)