Element 'ram:CountryID' must occur exactly 1 times.
CountryID is missing from PostalTradeAddress or occurs more than once. It must appear there exactly once.
The rule requires exactly one country identifier in the buyer’s postal address so that the country of that address is specified unambiguously.
CountryID is missing from the buyer’s postal address or appears more than once. The rule requires exactly one such element.
- Locate
PostalTradeAddressin theBuyerTradePartysection. - Check how many times
CountryIDoccurs inside it. - Ensure that
CountryIDappears exactly once. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
Within PostalTradeAddress, the number of direct CountryID elements is checked; the required count is one.
The rule applies to the buyer’s postal address PostalTradeAddress.
rule/@context)assert/@test)