Element 'ram:CountryID' must occur exactly 1 times.
CountryID is missing from PostalTradeAddress or occurs more than once. Exactly one CountryID element is required.
CountryID identifies the country in the ultimate ship-to party’s postal address. A single occurrence associates the address with one country.
The ultimate ship-to party’s postal address is missing the country code or contains it more than once. Having exactly one CountryID resolves this issue.
- Open the ultimate ship-to party’s
PostalTradeAddress. - Make sure it contains exactly one
CountryIDelement. - Generate the invoice again and validate it once more.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID/> </ram:PostalTradeAddress>
Technical details
The test counts the direct ram:CountryID elements in ram:PostalTradeAddress and requires a count of 1.
The rule applies to the postal address of the ultimate ship-to party for an invoice line, under UltimateShipToTradeParty.
rule/@context)assert/@test)