Element 'ram:BuyerTradeParty' must occur exactly 1 times.
Within ram:ApplicableHeaderTradeAgreement, ram:BuyerTradeParty does not occur exactly once. The buyer element is missing or appears more than once.
The trade agreement must identify exactly one buyer so that the buyer party is unambiguous.
The buyer is missing from the trade agreement, or ram:BuyerTradeParty appears more than once. You can make the information unambiguous by having the element occur there exactly once.
- Find
ram:BuyerTradePartyinram:ApplicableHeaderTradeAgreement. - Add the element if it is missing, or remove duplicates so that it occurs exactly once.
- Generate the invoice again and validate it once more.
<ram:ApplicableHeaderTradeAgreement/>
<ram:ApplicableHeaderTradeAgreement> <ram:BuyerTradeParty/> </ram:ApplicableHeaderTradeAgreement>
Technical details
The XPath test counts the direct child elements ram:BuyerTradeParty and requires the count to be 1.
The rule applies within ram:ApplicableHeaderTradeAgreement of the header trade agreement.
rule/@context)assert/@test)