Element 'ram:ID' may occur at maximum 1 times.
The ram:ProductEndUserTradeParty contains more than one ram:ID element.
ram:ID is optional in this party element but may occur only once. Multiple identifiers at this location do not conform to the required structure.
ram:ID appears multiple times in ram:ProductEndUserTradeParty. The identifier may appear at most once in this element.
- Find the relevant
ram:ProductEndUserTradeParty. - Remove any extra
ram:IDelements there, or omitram:IDif no identifier is to be provided. - Generate the invoice again and validate it once more.
<ram:ProductEndUserTradeParty> <ram:ID>123</ram:ID> <ram:ID>456</ram:ID> </ram:ProductEndUserTradeParty>
<ram:ProductEndUserTradeParty> <ram:ID>123</ram:ID> </ram:ProductEndUserTradeParty>
Technical details
The test counts the direct ram:ID elements in the current ram:ProductEndUserTradeParty and allows no more than one.
The rule applies to ram:ID within ram:ProductEndUserTradeParty in the invoice agreement.
rule/@context)assert/@test)