What it means
For these billing frameworks in BT-23, sub-invoice numbers on GROUP lines without a parent must be unique. The UBL check finds GROUP lines through billing references identifying the current document. It compares each such cac:DocumentReference/cbc:ID with schemeID AFL and cbc:DocumentTypeCode 130 against matching references anywhere earlier in the XML. The earlier reference need not belong to another top-level GROUP line. The CII wording requires distinct AFL numbers on parentless GROUP lines. The CII check compares those AFL numbers in type 130 references with every earlier ram:IssuerAssignedID in the file, not only AFL numbers on GROUP lines.
Why it matters
Distinct sub-invoice numbers separate the top-level groups, while the UBL test also makes earlier occurrences elsewhere in the file relevant.
How to fix it
List the actual top-level GROUP lines and their AFL numbers. Correct any number shared by separate sub-invoices, updating related child references to remain consistent with their parents. If the GROUP numbers are already distinct, inspect earlier UBL AFL references. For CII, inspect every earlier ram:IssuerAssignedID for a match, not only those in AFL references. A child reference appearing before its own GROUP line can trigger this test; check the exported ordering without removing required references from the child lines. Export and recheck the file.
Once the file is corrected, check it again for free: Check an e-invoice
The rule as published
Lorsque le cadre de facturation (BT-23) est S8, B8, M8 ou S9, B9, M9, les numéros de facture à la ligne (ram:IssuerAssignedID avec ReferenceTypeCode = AFL) pour les lignes GROUP sans parent doivent être uniques. Veuillez vérifier que chaque numéro est distinct. Business terms: BT-23
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-MV-12_BT-128 still fails, and which other rules do.
Related rules
- BR-FR-BD-02_BT-30 Exactly one GROUP reference must match the seller
- BR-FR-BD-02_BT-31 Exactly one GROUP line must match the seller
- BR-FR-BD-02_BT-47 S9, B9 and M9 invoices need a GROUP line for the buyer
- BR-FR-BD-02_EXT-FR-FE-163 S9, B9 and M9 need two GROUP billing references
- BR-FR-BD-13_BT-3 S9, B9 and M9 require a self-billed document type
- BR-FR-BD-14-EXT-FR-FE-136 Top-level GROUP lines need an earlier invoice reference