Skip to content

Error

FX-SCH-A-000627: Give each country of origin block one identifier

In short

Error: fails the selected checks.

FX-SCH-A-000627 means an item's ram:OriginTradeCountry contains either no ram:ID element or more than one. If you state the country of origin (BT-159), put its code in exactly one ram:ID inside that block.

On this page

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
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether FX-SCH-A-000627 still fails, and which other rules do.

Updated 6 November 2026