Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in ram:PostalTradeAddress. The element is either missing or repeated.
The country identifier specifies the country of the invoicer’s postal address. Exactly one such element is required for the address to be structurally unambiguous.
The invoicer’s postal address does not contain ram:CountryID exactly once. You can adjust the address structure accordingly.
- Locate
ram:PostalTradeAddressin the invoicer’s address. - Make sure it contains exactly one
ram:CountryID. - Generate the invoice again and validate it once more.
Technical details
The test counts the direct ram:CountryID elements in ram:PostalTradeAddress and requires the count to be 1.
The rule applies to the invoicer’s postal address in ram:InvoicerTradeParty, within ram:PostalTradeAddress.
rule/@context)assert/@test)