The e-FACT service does not validate the invoice file code. If an invoice sent to the Generalitat has been rejected due to the file code and you do not know how to solve it, consult the Generalitat's Electronic Invoice Support website.
The Generalitat de Catalunya requests that the file number be included in the “FileReference” element of the invoice (the same for all detail lines of the same invoice). Facturae / Invoices / Invoice / Items / InvoiceLine /FileReference
If you don't know which field the file number corresponds to within the tool you use to issue the invoice, contact the tool's support and ask what name the "FileReference" value is under within the possible fields to report.
These indications, although they are not mandatory for local administrations, are good practices that, if extended to the majority of Catalan public administrations, could make the internal routing of invoices to the corresponding departments of each administration simpler.
You might be interested in: