Element 'ram:CountryID' must occur exactly 1 times.
CountryID is missing from PostalTradeAddress or occurs more than once. It must be present exactly once.
The rule requires exactly one country identifier in the postal address of the invoicee’s legal organization.
CountryID is missing or appears more than once in the invoicee’s legal organization address. The address must contain exactly one such element.
- Find
PostalTradeAddressunder the invoicee’sSpecifiedLegalOrganization. - Check how many times
CountryIDoccurs in it. - Add exactly one
CountryIDelement or remove any duplicates. - Generate the invoice again and validate it again.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>XX</ram:CountryID> </ram:PostalTradeAddress>
Technical details
Within PostalTradeAddress, the number of direct CountryID elements is checked; the test passes only when there is exactly one.
The rule applies to the postal address of the invoicee’s SpecifiedLegalOrganization.
rule/@context)assert/@test)