What it means
Each ram:PostalTradeAddress inside ram:BuyerAgentTradeParty must contain exactly one direct ram:CountryID child. This test counts elements, not their contents. It does not check whether the country value is empty or permitted; country-code membership is checked by FX-SCH-A-000660.
Why it matters
The country element is a required part of the Extended profile's structure for this postal address.
How to fix it
Check the affected buyer agent address. Put the correct country code in one ram:CountryID inside ram:PostalTradeAddress and remove any additional ram:CountryID elements from that address. Check the code against the profile's permitted country list, then re-export and recheck your invoice.
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-000658 still fails, and which other rules do.
Related rules
- FX-SCH-A-000659 Keep at most one buyer agent region element
- FX-SCH-A-000660 Check the buyer agent's country code
- FX-SCH-A-000661 Check the buyer agent's registration identifier scheme
- FX-SCH-A-000662 Country in the company address of the buyer's agent
- FX-SCH-A-000663 Region in the company address of the buyer's agent
- FX-SCH-A-000664 Country code in the company address of the buyer's agent