Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID must occur exactly once in ram:PostalTradeAddress. The element is either missing or appears more than once.
ram:CountryID identifies the country of the postal address and is required to assign that address unambiguously.
The legal organization’s postal address has no ram:CountryID or has more than one. This element must appear exactly once.
- Locate the postal address under
ram:SpecifiedLegalOrganization. - Ensure that
ram:PostalTradeAddresscontains exactly oneram:CountryID. - Regenerate the invoice and validate it again.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>XX</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The test counts the direct child elements ram:CountryID of ram:PostalTradeAddress and requires exactly one.
The rule applies to ram:PostalTradeAddress within ram:SpecifiedLegalOrganization of the buyer agent.
rule/@context)assert/@test)