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 ultimate ship-to address. Exactly one value is required to identify the country for this address.
The country identifier is missing from the ultimate ship-to postal address or is entered more than once. You can fix this by having a single ram:CountryID entry.
- Locate
PostalTradeAddressunderUltimateShipToTradeParty. - 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 the postal address of the ultimate ship-to party under UltimateShipToTradeParty.
rule/@context)assert/@test)