Element 'ram:ID' may occur at maximum 1 times.
ram:ID appears more than once in ram:ShipFromTradeParty. The test allows this element at most once.
The limit ensures that multiple identifiers are not supplied for the consignor using this same element.
ram:ID has been provided more than once for the consignor. This element may appear no more than once in this section.
- Find
ram:ShipFromTradePartyin the delivery details. - Check the
ram:IDelements it contains and remove any extra occurrences. - Generate the invoice again and validate it once more.
<ram:ShipFromTradeParty> <ram:ID>ABC</ram:ID> <ram:ID>DEF</ram:ID> </ram:ShipFromTradeParty>
<ram:ShipFromTradeParty> <ram:ID>ABC</ram:ID> </ram:ShipFromTradeParty>
Technical details
The XPath test counts the direct ram:ID elements within ram:ShipFromTradeParty and requires the count to be no greater than one.
The rule applies to ram:ID within ram:ShipFromTradeParty, the party from which the goods are shipped.
rule/@context)assert/@test)