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 ship-to party’s postal address must contain exactly one country identifier.
The ship-to party’s postal address is missing ram:CountryID, or the element appears more than once. You can correct the number of occurrences in the invoice line.
- Find
ram:PostalTradeAddressfor the ship-to party in the invoice line. - Make sure it contains exactly one
ram:CountryIDelement. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The check counts the direct ram:CountryID elements in ram:PostalTradeAddress and requires a count of 1.
This rule applies to the ship-to party’s postal address within an invoice line.
rule/@context)assert/@test)