Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID is missing from this ram:PostalTradeAddress or occurs more than once. It must occur exactly once.
The buyer organization’s address must contain exactly one country identifier.
The buyer organization’s address is missing ram:CountryID or contains it more than once. You can adjust the address so the element occurs exactly once.
- Check
ram:PostalTradeAddressin the buyer’sram:SpecifiedLegalOrganization. - Make sure
ram:CountryIDoccurs there exactly once. - Regenerate the invoice and validate it again.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>XX</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The XPath counts direct ram:CountryID elements in the current ram:PostalTradeAddress and requires the count to be 1.
The rule applies to ram:PostalTradeAddress within the buyer’s ram:SpecifiedLegalOrganization.
rule/@context)assert/@test)