Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID is missing from ram:PostalTradeAddress or occurs more than once. It must be present exactly once.
The country identifier specifies the country of the postal address. Exactly one element ensures that this address detail is present unambiguously.
The country identifier is missing from the buyer legal organization’s postal address or is included more than once. Including exactly one ram:CountryID makes the information unambiguous.
- Locate
ram:PostalTradeAddressfor the buyer’s legal organization. - Check whether
ram:CountryIDis missing or occurs more than once. - Ensure that
ram:CountryIDis included exactly once. - Generate the invoice again and validate it again.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The XPath test checks that the number of direct ram:CountryID elements in ram:PostalTradeAddress is exactly one.
The rule applies to the postal address of the legal organization within the buyer party.
rule/@context)assert/@test)