Element 'ram:SellerTradeParty' must occur exactly 1 times.
Within ram:ApplicableHeaderTradeAgreement, ram:SellerTradeParty does not occur exactly once. The seller element is missing or appears more than once.
The trade agreement must identify exactly one seller so that the seller party is unambiguous.
The seller is missing from the trade agreement, or ram:SellerTradeParty appears more than once. You can make the information unambiguous by having the element occur there exactly once.
- Find
ram:SellerTradePartyinram: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:SellerTradeParty/> </ram:ApplicableHeaderTradeAgreement>
Technical details
The XPath test counts the direct child elements ram:SellerTradeParty and requires the count to be 1.
The rule applies within ram:ApplicableHeaderTradeAgreement of the header trade agreement.
rule/@context)assert/@test)