Skip to content

Error

FX-SCH-A-000628: Check the country of origin code

In short

Error: fails the selected checks.

FX-SCH-A-000628 means your item's country of origin code (BT-159) is not on the allowed list. Replace it with the matching two-letter ISO 3166-1 code, such as DE, FR, NL or BE.

On this page

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

Check your file

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

Updated 6 November 2026