Skip to content

Fatal

BR-FR-32-LEGALID: Company registration number using 0002 needs nine digits

In short

Fatal: fails the selected checks.

BR-FR-32-LEGALID means your company registration number with scheme 0002 does not contain exactly nine digits after surrounding whitespace is removed. In the affected cac:PartyLegalEntity/cbc:CompanyID, enter the company's correct nine-digit SIREN.

On this page

What it means

The UBL check tests every cac:PartyLegalEntity/cbc:CompanyID with schemeID 0002, including the seller's company registration number (BT-30) and the buyer's (BT-47). The value must match nine digits after whitespace normalisation. Surrounding whitespace is ignored, but internal whitespace, letters and punctuation fail.

Why it matters

The company registration number needs the nine-digit format required here. This test does not verify the register entry or establish that the number belongs to the named company.

How to fix it

Find the affected company's registration number, including BT-30 for the seller or BT-47 for the buyer. Confirm its nine-digit SIREN against the company's records, then enter it in cac:PartyLegalEntity/cbc:CompanyID with schemeID 0002, preserving any leading zeros. Recheck your file.

Once the file is corrected, check it again for free: Check an e-invoice

The rule as published

Tout identifiant légal d'une Partie avec schemeID = '0002' DOIT être composé de 9 chiffres.

Where this rule applies

Rule set Version
France CTC (UBL invoice) 1.4.0-04
France CTC (UBL credit note) 1.4.0-04
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 BR-FR-32-LEGALID still fails, and which other rules do.

Updated 7 November 2026