What it means
This counts the direct ram:ID children of each ram:OriginTradeCountry under a line's ram:SpecifiedTradeProduct. The count must be one. An empty ram:ID still counts as an element, so this rule does not establish whether a country code is supplied or correct. It applies to the EN 16931 and Extended profiles of Factur-X and ZUGFeRD.
Why it matters
The country of origin block represents one country identifier. Its structure and the contents of that identifier are separate checks.
How to fix it
Check the item's actual country of origin and put its two-letter country code in one ram:ID. Remove accidental duplicate ID elements. If you do not need to state the country of origin, remove the whole ram:OriginTradeCountry block rather than leaving an empty block. 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
Element 'ram:ID' must occur exactly 1 times. Where this rule applies
| Rule set | Version |
|---|---|
| Factur-X 1.09 EN 16931 | 1.0.9-2 |
| Factur-X 1.09 EXTENDED | 1.0.9-2 |
| ZUGFeRD 2.5 EN 16931 | 2.5.2 |
| ZUGFeRD 2.5 EXTENDED | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000627 still fails, and which other rules do.
Related rules
- FX-SCH-A-000628 Check the country of origin code
- 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