What it means
For each ram:PostalTradeAddress inside ram:BuyerTaxRepresentativeTradeParty/ram:SpecifiedLegalOrganization, this rule requires one ram:CountryID child element. It checks the number of elements, not their values.
Why it matters
The Extended profile gives the country one place in this separate legal organisation address. Repeating the element breaks that structure even if the codes are identical.
How to fix it
Find ram:BuyerTaxRepresentativeTradeParty/ram:SpecifiedLegalOrganization/ram:PostalTradeAddress in the header trade agreement. Add the missing ram:CountryID with the correct country code, or keep the correct element and remove duplicates. Recheck your corrected file.
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-000686 still fails, and which other rules do.
Related rules
- FX-SCH-A-000687 The legal organisation's address may have only one region name
- FX-SCH-A-000688 Use an allowed country code for the legal organisation
- FX-SCH-A-000689 Each tax registration needs one identifier
- FX-SCH-A-000690 The tax representative's tax number needs a scheme attribute
- FX-SCH-A-000691 The tax representative's electronic address needs one identifier
- FX-SCH-A-000692 The tax representative's electronic address needs a scheme attribute