Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once in ram:PayeeTradeParty. This element may appear at most once in this context.
The identifier identifies the payee. Limiting it to one element avoids multiple competing identifiers in the same place.
ram:ID appears more than once in ram:PayeeTradeParty. This section may contain the identifier only once.
- Locate
ram:PayeeTradePartyin the payment terms. - Check the
ram:IDelements it contains and remove any extra occurrences. - Regenerate the invoice and validate it again.
<ram:PayeeTradeParty> <ram:ID>1</ram:ID> <ram:ID>2</ram:ID> </ram:PayeeTradeParty>
<ram:PayeeTradeParty> <ram:ID>1</ram:ID> </ram:PayeeTradeParty>
Technical details
The XPath test count(ram:ID)<=1 allows zero or one ram:ID element and rejects more than one.
The rule applies to ram:ID within ram:PayeeTradeParty in the document-level payment terms.
rule/@context)assert/@test)