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 |
Check your file
Drop your e-invoice to see whether BR-FR-MV-03_BT-128_AFL still fails, and which other rules do.