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 |
Check your file
Drop your e-invoice to see whether BR-FR-04_EXT-FR-FE-02 still fails, and which other rules do.