Skip to content

Error

FX-SCH-A-001173: The product's country of origin must be a valid country code

In short

Error: fails the selected checks.

FX-SCH-A-001173 means a non-empty country of origin code for the product on an invoice line (BT-159, ram:ID in ram:OriginTradeCountry) is not in the Extended profile's permitted country code list. Replace it with an allowed code for the product's country of origin.

On this page

What it means

The country of origin of the item (BT-159) sits in ram:OriginTradeCountry/ram:ID inside ram:SpecifiedTradeProduct of the line. A non-empty code value must appear in the Extended profile's permitted country code list. This rule allows an empty value and does not require the element to be present.

Why it matters

Factur-X 1.09 EXTENDED and ZUGFeRD 2.5 EXTENDED require a non-empty product country of origin code to come from their permitted list.

How to fix it

Check the product's country of origin on the invoice line. In the XML, replace the value of ram:SpecifiedTradeProduct/ram:OriginTradeCountry/ram:ID with a code for that country from the Extended profile's permitted country code list.

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 EXTENDED 1.0.9-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-001173 still fails, and which other rules do.

Updated 6 November 2026