Element 'ram:CountryID' must occur exactly 1 times.
CountryID must occur exactly once in PostalTradeAddress. The element is either missing or appears more than once.
CountryID identifies the country of the postal address of the seller’s legal organization. A single occurrence is required to associate the address with a country.
The postal address of the seller’s legal organization is missing its country, or the country is included more than once. You can resolve this by providing a single CountryID element.
- Locate the postal address under
SellerTradePartyandSpecifiedLegalOrganization. - Ensure that it contains exactly one
CountryIDelement. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The test checks whether the number of direct CountryID elements in PostalTradeAddress is exactly 1.
The rule applies to the postal address of the seller’s legal organization in SellerTradeParty.
rule/@context)assert/@test)