Skip to content

Fatal

BR-FR-BD-02_BT-31: Exactly one GROUP line must match the seller

In short

Fatal: fails the selected checks.

BR-FR-BD-02_BT-31 requires exactly one top-level GROUP line in your CII document to have a line seller company registration number (EXT-FR-FE-167) equal to the header seller's number (BT-30), when the invoicing framework (BT-23) is S9, B9 or M9. Correct the intended line's status, parent reference or registration number, and resolve any missing or duplicate qualifying line.

On this page

What it means

The test counts ram:IncludedSupplyChainTradeLineItem elements (BG-25) with ram:LineStatusReasonCode equal to GROUP and no ram:ParentLineID under ram:AssociatedDocumentLineDocument. The line's ram:SpecifiedLineTradeAgreement/ram:ItemSellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID must equal the header seller's company registration number (BT-30). Exactly one line must qualify. Despite BT-31 in the rule id, this compares company registration numbers, not VAT numbers. It does not itself count all top-level GROUP lines. UBL uses BR-FR-BD-02_BT-30.

Why it matters

The seller's GROUP line needs to identify the same registered seller as the CII document header.

How to fix it

Check that BT-23 describes your invoicing arrangement. If S9, B9 or M9 is correct, set the intended seller line's ram:LineStatusReasonCode to GROUP and omit ram:ParentLineID completely, even an empty element. Under ram:SpecifiedLineTradeAgreement, set ram:ItemSellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID to the header seller's BT-30. Add a genuinely missing line or remove an unintended duplicate so exactly one line qualifies, then recheck.

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), pour lesquelles l'une a pour ID legal Vendeur à la ligne (EXT-FR-FE-167) l'ID légal du VENDEUR (BT-30). Veuillez vérifier qu'il y a une ligne GROUP avec ID Vendeur de ligne = ID VENDEUR (BT-30).

Business terms: BG-25, BT-23, BT-30

Where this rule applies

Rule set Version
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_BT-31 still fails, and which other rules do.

Updated 6 November 2026