Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID is missing from this postal address or occurs more than once.
The rule requires exactly one country identifier for this postal address.
ram:CountryID is missing or repeated in the postal address of the buyer’s tax representative’s legal organization. You can adjust the entry so that exactly one element is present.
- Look for
ram:CountryIDin theram:PostalTradeAddressofram:SpecifiedLegalOrganization. - Add the element if it is missing, or remove duplicates so that exactly one remains.
- Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>XX</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The XPath context is ram:PostalTradeAddress; the check requires exactly one direct ram:CountryID element.
The rule applies to the postal address within the buyer’s tax representative’s ram:SpecifiedLegalOrganization.
rule/@context)assert/@test)