Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once in ram:PayeeTradeParty.
The rule limits the number of payee identifiers to at most one. Multiple ram:ID elements do not conform to the intended structure.
Multiple ram:ID elements are provided for the payee. You can resolve this by limiting the number of these elements to one at most.
- Locate
ram:PayeeTradeParty. - Check the
ram:IDelements it contains. - Limit their number to one at most.
- 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 test counts the direct ram:ID elements within ram:PayeeTradeParty and accepts no more than one.
The rule applies to ram:ID within ram:PayeeTradeParty.
rule/@context)assert/@test)