Skip to content

Fatal

CII-SR-090: Include exactly one country-of-origin ID

In short

Fatal: fails the selected checks.

CII-SR-090 requires exactly one ram:ID in total across a line's ram:OriginTradeCountry elements when you include any of those elements. Add the missing country-of-origin identifier (BT-159), remove extra IDs, or remove the origin elements if you omit this information.

On this page

What it means

For each invoice line (BG-25), the test passes if ram:SpecifiedTradeProduct has no ram:OriginTradeCountry. Otherwise, it requires exactly one ram:OriginTradeCountry/ram:ID in total. It does not require one ID per origin element, check the ID's value or require exactly one origin element.

Why it matters

When you include country-of-origin information, this check requires a single identifier. Missing or repeated ID elements fail the check, which is reported as an error rather than a warning.

How to fix it

In the line's ram:SpecifiedTradeProduct, add the missing ram:OriginTradeCountry/ram:ID or remove extra ID elements so only the intended country identifier remains. If you omit the country of origin (BT-159), remove every ram:OriginTradeCountry element from that product. Export the corrected file and check it again.

Once the file is corrected, check it again for free: Validate an invoice against EN 16931

Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice

The rule as published

ID should exist maximum once.

Where this rule applies

Rule set Version
EN 16931 (CII) 1.3.17
XRechnung 3.0 (CII) 3.0.2
NLCIUS (CII) 1.0.3.13
France CTC (CII) 1.4.0-04
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether CII-SR-090 still fails, and which other rules do.

Updated 6 November 2026