Element 'ram:CountryID' must occur exactly 1 times.
The buyer agent’s ram:PostalTradeAddress does not contain exactly one ram:CountryID: the element is missing or occurs more than once.
A postal address requires exactly one country identifier in this context so that its country is specified unambiguously.
The buyer agent’s postal address is missing ram:CountryID or contains it more than once. Exactly one element meets the requirement for this address.
- Check
ram:PostalTradeAddressfor the buyer agent. - Make sure it contains exactly one
ram:CountryIDelement. - Generate the invoice again and validate it once more.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID/> </ram:PostalTradeAddress>
Technical details
The XPath counts direct ram:CountryID elements under ram:PostalTradeAddress and requires exactly one.
The rule applies to ram:CountryID within the buyer agent’s ram:PostalTradeAddress postal address.
rule/@context)assert/@test)