Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once within ram:InvoiceeTradeParty.
The structure allows at most one identifier in ram:ID within the invoicee. Multiple occurrences do not meet this requirement.
ram:ID is entered more than once for the invoicee. Removing the duplicate entries makes it possible to validate the invoice again.
- Locate
ram:InvoiceeTradeParty. - Check its
ram:IDelements and retain no more than one. - Generate the invoice again and validate it again.
<ram:InvoiceeTradeParty> <ram:ID>1</ram:ID> <ram:ID>2</ram:ID> </ram:InvoiceeTradeParty>
<ram:InvoiceeTradeParty> <ram:ID>1</ram:ID> </ram:InvoiceeTradeParty>
Technical details
The test counts the direct ram:ID elements of ram:InvoiceeTradeParty and requires the count to be no greater than one.
The rule applies to ram:ID within ram:InvoiceeTradeParty.
rule/@context)assert/@test)