Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID is missing from ram:PostalTradeAddress or occurs more than once. The element must be present exactly once.
The postal address of the tax representative must contain exactly one country identifier.
The postal address of the buyer’s tax representative is missing its country identifier or contains it more than once. ram:CountryID must occur exactly once.
- Find
ram:PostalTradeAddressfor the buyer’s tax representative. - Check how many times
ram:CountryIDoccurs there. - Add or remove entries so that
ram:CountryIDis present exactly once. - Generate the invoice again and validate it once more.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID/> </ram:PostalTradeAddress>
Technical details
The test counts the direct ram:CountryID elements in ram:PostalTradeAddress and requires exactly one.
The rule applies to the postal address ram:PostalTradeAddress of the buyer’s tax representative.
rule/@context)assert/@test)