Skip to content

Fatal

BR-FR-04_EXT-FR-FE-02: Use an allowed referenced document type code

In short

Fatal: fails the selected checks.

BR-FR-04_EXT-FR-FE-02 means the type code for a document your invoice or credit note refers to is not allowed. Correct the document-level cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentTypeCode in your UBL file or ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument/ram:TypeCode in your CII file using the code that describes the referenced document from this list: 380, 389, 393, 501, 386, 500, 384, 471, 472, 473, 261, 262, 381, 396, 502 or 503.

On this page

What it means

In a UBL Invoice or CreditNote, each cbc:DocumentTypeCode under the document-level cac:BillingReference/cac:InvoiceDocumentReference must exactly match one of these values: 380, 389, 393, 501, 386, 500, 384, 471, 472, 473, 261, 262, 381, 396, 502 or 503. This check applies only when the element is present. An empty element does not match.

Why it matters

This French profile uses a restricted set of codes to identify the kind of document you are referring to.

How to fix it

Check what type of document the reference identifies. Correct its cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentTypeCode at document level in UBL, or ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument/ram:TypeCode in CII, using the matching permitted code, rather than choosing an ordinary invoice code by default. Correct the source of the value in your invoice export, generate the file again and recheck it.

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

The rule as published

Le code type de document référencé (cbc:DocumentTypeCode) n’est pas autorisé. Valeurs acceptées : 380, 389, 393, 501, 386, 500, 384, 471, 472, 473, 261, 262, 381, 396, 502, 503. Valeur actuelle : " … ". Veuillez utiliser un code conforme à la liste autorisée.

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-04_EXT-FR-FE-02 still fails, and which other rules do.

Updated 8 November 2026