Skip to content

Fatal

BR-FR-04_EXT-FR-FE-137: Use an allowed referenced document type code on the line

In short

Fatal: fails the selected checks.

BR-FR-04_EXT-FR-FE-137 means a referenced document type code on an invoice or credit note line is not allowed. Correct that line's cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentTypeCode in your UBL file or ram:SpecifiedLineTradeSettlement/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

Within a UBL InvoiceLine or CreditNoteLine, each cbc:DocumentTypeCode under 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. In CII, the same values apply to ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:TypeCode under ram:IncludedSupplyChainTradeLineItem. This check applies only when the element is present. An empty element does not match.

Why it matters

This French profile restricts the codes you can use to identify a document referenced by a line.

How to fix it

Find the affected cac:InvoiceLine or cac:CreditNoteLine in UBL, or ram:IncludedSupplyChainTradeLineItem in CII, and check what type of document its reference identifies. Correct the cbc:DocumentTypeCode inside that line's cac:BillingReference/cac:InvoiceDocumentReference in UBL or ram:TypeCode inside that line's ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument in CII using the matching permitted code. 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é en ligne (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-137 still fails, and which other rules do.

Updated 8 November 2026