What it means
In UBL, the check applies to cbc:IssueDate inside a line's cac:BillingReference/cac:InvoiceDocumentReference, on either cac:InvoiceLine or cac:CreditNoteLine. It calls custom:is-valid-date-format(.), with a stated year range of 2000 to 2099 inclusive. It checks existing date elements rather than requiring every line to have a reference.
Why it matters
This field records the date of the referenced invoice, not the date of the document you are currently issuing. The French profile restricts the years permitted in the reference date.
How to fix it
Find the referenced invoice and check its invoice date. Correct the date in the affected line's structured invoice reference. In UBL, update cbc:IssueDate inside cac:BillingReference/cac:InvoiceDocumentReference using YYYY-MM-DD format. Do not delete a needed reference or invent a date to avoid the error. Export the corrected file and recheck it.
Once the file is corrected, check it again for free: Check an e-invoice
The rule as published
La date d’émission de la facture référencée en ligne doit contenir une année entre 2000 et 2099. Valeur actuelle : " … ". Veuillez vérifier la validité de la date. 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-03_EXT-FR-FE-138 still fails, and which other rules do.