Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID is missing from ram:PostalTradeAddress or occurs more than once. It must occur exactly once.
ram:CountryID identifies the country of the legal organization’s postal address. Exactly one country element is required so the address specifies one country unambiguously.
The legal organization’s postal address does not contain exactly one ram:CountryID. Add the missing element or remove a duplicate.
- Check
ram:PostalTradeAddressinram:SpecifiedLegalOrganization. - Make sure
ram:CountryIDoccurs exactly once in it. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID/> </ram:PostalTradeAddress>
Technical details
The check counts direct ram:CountryID elements inside ram:PostalTradeAddress and requires the count to be 1.
The rule applies to ram:PostalTradeAddress in ram:SpecifiedLegalOrganization of ram:ShipFromTradeParty.
rule/@context)assert/@test)