What it means
For invoice or credit note lines (BG-25), the UBL check counts cac:BillingReference elements whose cac:InvoiceDocumentReference/cbc:ID equals the document's own number, whose cac:InvoiceDocumentReference/cbc:DocumentStatusCode is GROUP (EXT-FR-FE-163), and which have no cac:BillingReferenceLine/cbc:ID (EXT-FR-FE-162). The count must equal two when BT-23 is S9, B9 or M9. It counts references, not distinct lines. In CII, the check instead counts ram:IncludedSupplyChainTradeLineItem elements with ram:AssociatedDocumentLineDocument/ram:LineStatusReasonCode equal to GROUP and no ram:AssociatedDocumentLineDocument/ram:ParentLineID; exactly two must match, and no reference to the document's own number is required by this check.
Why it matters
These frameworks require a two-group structure. This UBL check represents that structure through two matching line-level billing references.
How to fix it
Check that BT-23 describes your invoicing arrangement. In UBL, for the intended top-level GROUP lines, check the billing references to the current document number and their GROUP status codes. Omit cac:BillingReferenceLine/cbc:ID completely; leaving an empty element does not qualify. Add a missing reference or correct or remove an unintended extra reference so exactly two qualify. In CII, correct ram:LineStatusReasonCode and ram:ParentLineID so exactly two lines have status GROUP and no parent line ID; no reference to the document's own number is required by this check. Recheck your 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 S9, B9 ou M9, la facture doit contenir exactement deux ligne (BG-25) avec le sous-type de ligne (ram:LineStatusReasonCode) égal à "GROUP" et sans identifiant de ligne parent (ram:ParentLineID). Veuillez vérifier que cette ligne est présente. Business terms: BG-25, 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-BD-02_EXT-FR-FE-163 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-14-EXT-FR-FE-136 Top-level GROUP lines need an earlier invoice reference
- BR-FR-BD-14-EXT-FR-FE-138 Top-level GROUP lines need the earlier invoice date
- BR-FR-MV-01_EXT-FR-FE-163 Every line of a multi-seller invoice needs a line sub-type