Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once in ram:PayeeTradeParty.
At most one ram:ID is allowed in ram:PayeeTradeParty. Multiple occurrences violate the defined XML structure.
ram:ID has been entered more than once for the payee. You can resolve this by reducing the repeated entries to no more than one.
- Find
ram:PayeeTradePartyin the payment terms. - Check its
ram:IDelements and leave no more than one. - Generate the invoice again and validate it.
<ram:PayeeTradeParty> <ram:ID>123</ram:ID> <ram:ID>456</ram:ID> </ram:PayeeTradeParty>
<ram:PayeeTradeParty> <ram:ID>123</ram:ID> </ram:PayeeTradeParty>
Technical details
The XPath test counts the ram:ID elements within the current ram:PayeeTradeParty and requires the count to be no greater than one.
The rule applies to ram:ID within ram:PayeeTradeParty in the document-level payment terms.
rule/@context)assert/@test)