What it means
If the invoicee, the party the invoice is sent to when that is not the buyer, has a postal address (ram:PostalTradeAddress), the address must contain exactly one country (ram:CountryID), normally the two-letter code. The check counts the element and fails on none and on two or more.
Why it matters
Without a country the address cannot be placed, and with two countries it is unclear which one applies. The recipient's system may need the country to route and book the invoice, so the file fails the check and may be rejected.
How to fix it
Open the invoice address in your invoicing software and choose the country from the list. Check that the address is not duplicated with a different country. If you build the XML yourself, ram:CountryID appears once inside ram:PostalTradeAddress of ram:InvoiceeTradeParty.
Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice
Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta
The rule as published
Element 'ram:CountryID' must occur exactly 1 times. Where this rule applies
| Rule set | Version |
|---|---|
| Factur-X 1.09 EXTENDED | 1.0.9-2 |
| ZUGFeRD 2.5 EXTENDED | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000874 still fails, and which other rules do.
Related rules
- FX-SCH-A-000875 The invoicee address can have only one region
- FX-SCH-A-000876 Use an allowed country code in the invoicee's address
- FX-SCH-A-000877 Use an allowed invoicee registration scheme
- FX-SCH-A-000878 The invoicee's registered address needs one country element
- FX-SCH-A-000879 The invoicee's registered address can have only one region
- FX-SCH-A-000880 Use an allowed country code in the invoicee's registered address