Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in ram:PostalTradeAddress. The element is missing or appears more than once.
ram:CountryID specifies the country of the payee’s postal address. Exactly one such element is required for the address.
ram:CountryID is missing or appears more than once in the payee’s postal address. The address requires exactly one country entry.
- Locate the payee’s
ram:PostalTradeAddress. - Make sure it contains exactly one
ram:CountryID. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The XPath test checks whether ram:PostalTradeAddress has exactly one direct ram:CountryID child element.
The rule applies to the payee’s postal address within the payment terms.
rule/@context)assert/@test)