Element 'ram:BuyerTradeParty' must occur exactly 1 times.
BuyerTradeParty is missing from ApplicableHeaderTradeAgreement or occurs there more than once. The element must occur exactly once.
The invoice must contain exactly one buyer so that the party being invoiced is clearly identified.
The buyer information is missing or appears more than once. You can adjust the invoice so that BuyerTradeParty occurs exactly once.
- Check
ApplicableHeaderTradeAgreementforBuyerTradeParty. - Make sure the element is present exactly once.
- Generate the invoice again and validate it.
<ram:ApplicableHeaderTradeAgreement> <ram:BuyerTradeParty/> <ram:BuyerTradeParty/> </ram:ApplicableHeaderTradeAgreement>
<ram:ApplicableHeaderTradeAgreement> <ram:BuyerTradeParty/> </ram:ApplicableHeaderTradeAgreement>
Technical details
The test counts BuyerTradeParty elements in the context and requires the count to equal 1.
The rule applies to the buyer information in ApplicableHeaderTradeAgreement.
rule/@context)assert/@test)