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 is a required part of this postal address. Without exactly one country entry, the address is not fully structured at this point.
The country entry is missing from the seller's postal address or appears more than once. Exactly one ram:CountryID provides the required country entry here.
- Locate the seller's
ram:PostalTradeAddressfor the item. - Make sure 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 elements within ram:PostalTradeAddress and requires exactly one.
The rule applies to the postal address of the seller of an item in an invoice line.
rule/@context)assert/@test)