Element 'ram:CountryID' must occur exactly 1 times.
CountryID is missing from the buyer’s PostalTradeAddress or occurs more than once. Exactly one CountryID element must be present.
The buyer’s postal address must contain exactly one country identifier element.
The buyer’s postal address is missing CountryID or contains it more than once. You can adjust the structure so that it contains exactly one such element.
- Find
PostalTradeAddressinBuyerTradeParty. - Make sure it contains exactly one
CountryIDelement. - Generate the invoice again and validate it.
<ram:BuyerTradeParty> <ram:PostalTradeAddress/> </ram:BuyerTradeParty>
<ram:BuyerTradeParty> <ram:PostalTradeAddress> <ram:CountryID/> </ram:PostalTradeAddress> </ram:BuyerTradeParty>
Technical details
Within PostalTradeAddress, the rule checks that exactly one direct CountryID element is present.
The rule applies to the buyer’s postal address PostalTradeAddress in BuyerTradeParty.
rule/@context)assert/@test)