What it means
The check counts ram:CountryID elements directly inside ram:BuyerAgentTradeParty/ram:SpecifiedLegalOrganization/ram:PostalTradeAddress in the header trade agreement. The count must be one. This rule does not check the country code itself.
Why it matters
This address must have one country element to follow the structure of the Extended profile of Factur-X and ZUGFeRD.
How to fix it
Check the company postal address of the buyer's agent. Within ram:SpecifiedLegalOrganization/ram:PostalTradeAddress, keep one ram:CountryID containing the correct country code. Add it if it is missing, then export the invoice again and recheck it.
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-000662 still fails, and which other rules do.
Related rules
- 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
- FX-SCH-A-000665 Tax registration number for the buyer's agent
- FX-SCH-A-000666 The buyer agent's tax registration must say what type it is
- FX-SCH-A-000667 Electronic address for the buyer's agent
- FX-SCH-A-000668 Electronic address scheme for the buyer's agent