Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID is missing from PostalTradeAddress or occurs more than once. This address must contain the element exactly once.
The country identifier specifies the country of the legal organization’s postal address. Exactly one value is required to identify the country for this address.
The country identifier is missing from the legal organization’s postal address or is entered more than once. You can fix this by having a single ram:CountryID entry.
- Locate
PostalTradeAddressunderSpecifiedLegalOrganizationfor the ultimate ship-to party. - Make sure
ram:CountryIDoccurs there exactly once. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The test counts the direct ram:CountryID elements in PostalTradeAddress and requires the count to be 1.
The rule applies to PostalTradeAddress of the SpecifiedLegalOrganization for the ultimate ship-to party.
rule/@context)assert/@test)