Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once in ram:ProductEndUserTradeParty. This element may appear there no more than once.
The structure limits the identifier of ProductEndUserTradeParty to a single entry. Multiple entries do not conform to the defined XML structure.
The invoice contains multiple ram:ID elements for ProductEndUserTradeParty. You can adjust the XML structure so that no more than one entry is present.
- Locate
ram:IDwithinram:ProductEndUserTradeParty. - Remove additional
ram:IDelements so that no more than one remains. - Generate the invoice again and validate it.
<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 check verifies that the number of direct ram:ID elements in the rule context is no greater than one.
The rule applies to ram:ID within the header agreement’s ram:ProductEndUserTradeParty element.
rule/@context)assert/@test)