Skip to content

Fatal

BR-FR-MV-03_BT-128_AFL: Top-level GROUP lines need a sub-invoice number

In short

Fatal: fails the selected checks.

BR-FR-MV-03_BT-128_AFL means a top-level GROUP line is missing its AFL sub-invoice number or has a CII AFL reference without ram:TypeCode 130 under billing framework S8, B8, M8, S9, B9 or M9. Enter that sub-invoice's number as the invoiced object reference (BT-128), with scheme identifier AFL (BT-128-1).

On this page

What it means

For these billing frameworks in BT-23, each UBL GROUP line without a parent must have a non-blank AFL reference. In UBL, the GROUP billing reference must identify the current document, and the number is in cac:DocumentReference/cbc:ID with schemeID AFL, under a reference whose cbc:DocumentTypeCode is 130. In CII, the number is ram:IssuerAssignedID with ram:ReferenceTypeCode AFL. The CII check runs on existing AFL references and also requires ram:TypeCode 130.

Why it matters

The AFL reference records which sub-invoice the GROUP line represents.

How to fix it

On the affected top-level GROUP line, enter the actual sub-invoice number. For UBL, use cac:DocumentReference with cbc:DocumentTypeCode 130 and cbc:ID with schemeID AFL. For CII, use ram:IssuerAssignedID with ram:ReferenceTypeCode AFL and ram:TypeCode 130. A blank value or spaces alone will not satisfy the UBL check. Export and recheck the file.

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

The rule as published

Pour une ligne GROUP sans parent, une valeur d'objet facturé (BT-128) avec identifiant de schéma (BT-128-1) = AFL doit être présente (numéroe de sous-facture) : Ligne : …

Where France CTC (CII) run it, the rule reads:

Pour une ligne GROUP sans parent, une valeur d'objet facturé (ram:IssuerAssignedID) avec identifiant de schéma (ram:ReferenceTypeCode) = AFL doit être présente. Valeur actuelle : " … ".

Business terms: BT-128

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-MV-03_BT-128_AFL still fails, and which other rules do.

Updated 8 November 2026