Element 'ram:ID' may occur at maximum 1 times.
ram:UltimateShipToTradeParty contains ram:ID more than once. This element may occur there at most once; it may also be absent.
ram:ID contains an identifier for the ultimate goods recipient. Multiple identifiers in this element would make the information ambiguous.
ram:ID appears more than once in ram:UltimateShipToTradeParty. Remove any extra occurrences; the element is not required.
- Find
ram:IDwithinram:UltimateShipToTradeParty. - Remove any extra occurrences so that the element appears no more than once.
- Generate the invoice again and check it again.
<ram:UltimateShipToTradeParty> <ram:ID>A</ram:ID> <ram:ID>B</ram:ID> </ram:UltimateShipToTradeParty>
<ram:UltimateShipToTradeParty> <ram:ID>A</ram:ID> </ram:UltimateShipToTradeParty>
Technical details
The check counts the direct ram:ID elements in ram:UltimateShipToTradeParty and allows at most one.
The rule applies to ram:ID within ram:UltimateShipToTradeParty.
rule/@context)assert/@test)