Element 'ram:PayeeTradeParty' may occur at maximum 1 times.
Within ram:SpecifiedTradePaymentTerms, ram:PayeeTradeParty occurs more than once. This element may occur at most once in this context.
ram:PayeeTradeParty identifies the payee in the payment terms. The limit ensures that no more than one payee is specified there.
The invoice contains multiple ram:PayeeTradeParty elements in the payment terms. At most one payee is allowed in this context.
- Locate
ram:SpecifiedTradePaymentTermsin the invoice. - Check its
ram:PayeeTradePartyelements and remove the extra occurrences. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradePaymentTerms> <ram:PayeeTradeParty/> <ram:PayeeTradeParty/> </ram:SpecifiedTradePaymentTerms>
<ram:SpecifiedTradePaymentTerms> <ram:PayeeTradeParty/> </ram:SpecifiedTradePaymentTerms>
Technical details
The test counts the direct ram:PayeeTradeParty elements in ram:SpecifiedTradePaymentTerms and permits no more than one.
The rule applies within ram:SpecifiedTradePaymentTerms at document level.
rule/@context)assert/@test)