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 |
Check your file
Drop your e-invoice to see whether BR-FR-32-LEGALID still fails, and which other rules do.