Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in PostalTradeAddress. The element is missing or occurs more than once.
The postal address requires exactly one country entry so that the sales agent’s country is stated unambiguously.
The sales agent’s postal address is missing ram:CountryID or contains it more than once. Include it exactly once there.
- Locate the sales agent’s postal address under
ram:PostalTradeAddress. - Make sure
ram:CountryIDoccurs exactly once there. - Generate the invoice again and validate it once more.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The rule checks that there is exactly one direct ram:CountryID element in ram:PostalTradeAddress.
The rule applies to the sales agent’s postal address in SalesAgentTradeParty.
rule/@context)assert/@test)