Element 'ram:ID' may occur at maximum 1 times.
The ram:ID element occurs more than once within ram:ShipToTradeParty. This element may appear there no more than once.
ram:ShipToTradeParty identifies the party receiving the delivery. Limiting it to one ram:ID prevents multiple identifiers in this element.
The delivery recipient contains ram:ID 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:IDelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:ShipToTradeParty> <ram:ID>A</ram:ID> <ram:ID>B</ram:ID> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:ID>A</ram:ID> </ram:ShipToTradeParty>
Technical details
The test counts the direct ram:ID 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)