Skip to content

Fatal

BR-FR-MV-12_BT-128: Top-level GROUP sub-invoice numbers must not repeat

In short

Fatal: fails the selected checks.

BR-FR-MV-12_BT-128 means a top-level GROUP line repeats an AFL sub-invoice number found earlier in the file. Under billing framework S8, B8, M8, S9, B9 or M9, give separate sub-invoices distinct BT-128 numbers and check whether a matching detail reference appears before its GROUP line.

On this page

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

Check your file

Drop your e-invoice to see whether BR-FR-MV-12_BT-128 still fails, and which other rules do.

Updated 8 November 2026