Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once in ram:InvoiceeTradeParty. This element may appear there at most once.
The limit ensures that the invoicee is not represented by multiple entries in the same identification element.
The invoicee contains multiple ram:ID elements. Keep no more than one in this entry.
- Find
ram:InvoiceeTradePartyin the invoice. - Remove the extra
ram:IDelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:InvoiceeTradeParty> <ram:ID>A</ram:ID> <ram:ID>B</ram:ID> </ram:InvoiceeTradeParty>
<ram:InvoiceeTradeParty> <ram:ID>A</ram:ID> </ram:InvoiceeTradeParty>
Technical details
The test counts the direct ram:ID elements in ram:InvoiceeTradeParty and requires a count of no more than one.
The rule applies to ram:ID within ram:InvoiceeTradeParty, the invoicee.
rule/@context)assert/@test)