Element 'ram:CountryID' must occur exactly 1 times.
CountryID is missing from PostalTradeAddress or occurs more than once. Exactly one CountryID element is required.
CountryID identifies the country of the seller’s postal address. The rule requires exactly one country designation for this address.
The seller’s postal address is missing CountryID or contains it more than once. Providing exactly one country identifier resolves this issue.
- Find
PostalTradeAddressunderItemSellerTradeParty. - Make sure the address contains exactly one
CountryIDelement. - Regenerate the invoice and validate it again.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>FR</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The XPath counts the CountryID elements in the current PostalTradeAddress and requires exactly one.
The rule applies to the seller’s PostalTradeAddress for an invoice line.
rule/@context)assert/@test)