Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in ram:PostalTradeAddress. The element is either missing or occurs more than once.
The country identifier specifies the country of the postal address. Exactly one element ensures that the country is stated unambiguously.
ram:CountryID is missing or occurs more than once in the postal address of the ultimate ship-to party. Having exactly one element resolves this issue.
- Locate the
ram:PostalTradeAddressof the ultimate ship-to party. - Check that it contains exactly one
ram:CountryID. - 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 child elements of ram:PostalTradeAddress and requires the count to be 1.
The rule applies to the postal address of the ultimate ship-to party of an invoice line.
rule/@context)assert/@test)