Skip to content

Fatal

BR-FR-BD-02_EXT-FR-FE-163: S9, B9 and M9 need two GROUP billing references

In short

Fatal: fails the selected checks.

BR-FR-BD-02_EXT-FR-FE-163 means the invoicing framework (BT-23) is S9, B9 or M9 but the count of qualifying line-level cac:BillingReference elements in UBL or top-level GROUP lines in CII is not two. Correct the UBL references to the current document, with GROUP and no parent line ID, or the CII GROUP lines with no ram:ParentLineID, so exactly two qualify.

On this page

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
Rule text from phive-rules 4.6.4.

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.

Updated 8 November 2026