Element 'ram:CountryID' must occur exactly 1 times.
CountryID is missing from PostalTradeAddress or occurs more than once. Exactly one CountryID element must be present.
The country information assigns the postal address to a country. Exactly one element ensures that the country is identified unambiguously.
The sales agent’s postal address is missing its country information, or includes it more than once. You can resolve this by having a single CountryID element.
- Open the sales agent’s
PostalTradeAddress. - Make sure it contains exactly one
CountryIDelement. - Regenerate the invoice and validate it again.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>...</ram:CountryID> </ram:PostalTradeAddress>
Technical details
In the context of PostalTradeAddress, the rule checks that the number of direct CountryID elements is exactly one.
The rule applies to the sales agent’s postal address under SalesAgentTradeParty and checks PostalTradeAddress.
rule/@context)assert/@test)