Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once within ram:PayerTradeParty. The element may occur no more than once.
The payer’s identifier is provided no more than once in this XML context.
ram:ID appears more than once in ram:PayerTradeParty. You can adjust the XML so that the element occurs no more than once.
- Find
ram:PayerTradePartyin the invoice. - Check whether it contains more than one
ram:IDelement. - Remove any extra
ram:IDelements, or omit the element if no identifier is provided. - Generate the invoice again and validate it.
<ram:PayerTradeParty> <ram:ID/> <ram:ID/> </ram:PayerTradeParty>
<ram:PayerTradeParty> <ram:ID/> </ram:PayerTradeParty>
Technical details
The rule counts direct ram:ID elements under ram:PayerTradeParty and permits zero or one occurrence.
The rule applies to the identifier within document-level ram:PayerTradeParty.
rule/@context)assert/@test)