Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in ram:PostalTradeAddress. The element is either missing or appears more than once.
The country identifier assigns the ship-to address to a country. It must be supplied exactly once in the postal address.
ram:CountryID is missing from the ship-to postal address or appears more than once. You can adjust the number of occurrences in the address.
- Add
ram:CountryIDtoram:PostalTradeAddressif it is missing. - Remove any extra
ram:CountryIDelements so that exactly one remains. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The rule counts the direct ram:CountryID elements under ram:PostalTradeAddress and requires exactly one.
The rule applies to the ship-to party’s postal address, ram:PostalTradeAddress.
rule/@context)assert/@test)