Element 'ram:CountryID' must occur exactly 1 times.
The payee legal organization’s address does not contain exactly one ram:CountryID element. The element is either missing or occurs more than once.
ram:CountryID assigns the legal organization’s address to a country. Exactly one such element is required so that the country in the address is unambiguous.
The payee legal organization’s address is missing ram:CountryID, or it appears more than once. Having one country identifier resolves this structural issue.
- Open the payee legal organization’s
ram:PostalTradeAddress. - Make sure
ram:CountryIDoccurs exactly once in it. - Generate the invoice again and validate it once more.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The test counts the direct ram:CountryID elements within ram:PostalTradeAddress and requires exactly one.
The rule applies to the payee legal organization’s ram:PostalTradeAddress in the payment terms.
rule/@context)assert/@test)