What it means
This checks ram:ID inside ram:OriginTradeCountry under the line's ram:SpecifiedTradeProduct. An empty value passes this check; a non-empty value must appear in the EN 16931 profile's country code list. A country name or a three-letter code such as DEU is not the required two-letter code.
Why it matters
An agreed country code identifies the stated country consistently, without relying on country names written in different languages.
How to fix it
Correct the item's country of origin field or the corresponding ram:ID to the matching two-letter code, such as DE for Germany. If you do not need to state an origin, remove the whole ram:OriginTradeCountry block, not just its ID. Export the corrected file 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
Value of 'ram:ID' is not allowed. Where this rule applies
| Rule set | Version |
|---|---|
| Factur-X 1.09 EN 16931 | 1.0.9-2 |
| ZUGFeRD 2.5 EN 16931 | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000628 still fails, and which other rules do.
Related rules
- FX-SCH-A-000630 Keep at most one document name
- FX-SCH-A-000631 Add the effective period date format
- FX-SCH-A-000632 Check the effective period date format code
- FX-SCH-A-000633 The subject code of a note must be an allowed code
- FX-SCH-A-000634 Check the invoice date format code
- FX-SCH-A-000635 Use an allowed Extended profile invoice type code