What is the _metaDato.xml file in the bulk download?
What the _metaDato.xml file next to every invoice in the bulk download ZIP is, what it contains, why it is not the invoice and how it becomes an Excel sheet and the SdI transmission times.
What the _metaDato.xml file is
In the ZIP of the bulk download from Fatture e
Corrispettivi, next to every invoice there is a second file with the same name plus _metaDato.xml:
IT01234567890_a1b2c.xml.p7m: the invoice;IT01234567890_a1b2c.xml.p7m_metaDato.xml: its metadata.
The metadata file is not the invoice, nor a copy of it: it is a record the exchange system SdI
(Sistema di Interscambio) keeps on the file it received, that is when it accepted it and how and by whom it was sent. The
name tells which invoice it belongs to: it is the invoice's name with _metaDato.xml at the end.
Don't confuse it with the file with _MT_ in its name (for example IT01234567890_a1b2c_MT_001.xml),
which comes with the invoice by PEC (certified email) or to the software of the recipient code: it describes the
delivery too, but it is another file, with other data. Where invoices arrive is explained in
where to find your e-invoices.
What it contains
The file is an XML with a list of name / value pairs (<metadato><nome>…</nome><valore>…</valore></metadato>).
The most useful ones:
- idfile: the SdI identifier, the number the SdI gives the file and that appears in its receipts;
- dataaccoglienza: the day the SdI accepted the file. For an issued invoice it says when it was sent; for a received one it is usually the day of delivery, but not always;
- canaletrasmissione: the transmission channel (portal, PEC, web service, FTP);
- soggettotrasmittente: the VAT number or tax code of whoever sent the file, the company itself or an intermediary such as the accountant;
- firmadigitale: whether the file is signed (VERO / FALSO, true / false);
- tipodocumento, formatofattura, supplier and customer with name and VAT number;
- numerofatture with the earliest and latest issue date: more than one invoice when the file is a batch (lotto).
The amounts and lines of the invoice are not in it: for those you need the invoice file.
Can you open it?
It is text: you can read it in an editor or a browser, but it stays a list of technical names. Uploaded on its own to
e-invoices.it it shows nothing: the message is “No e-invoice was found in the uploaded
files.”, because the invoice is the other file, the one with the same name without _metaDato.xml. Upload that
one and choose View and print; if it is a .p7m, see
how to open a .p7m file.
There's no need to take it out of the ZIP: e-invoices.it reads it but does not count it as an invoice, neither in the number of uploaded invoices nor against the limits.
What e-invoices.it does with it
Upload the ZIP files of the bulk download as they are: each metadata file is matched to its invoice by name.
- The Excel summary has an SdI metadata sheet, one row per file, with a link to the row of
its invoice on the Invoices sheet. The
_MT_files from PEC end up on the same sheet. - The Dashboard shows the section Sending and receiving via the SdI. For issued invoices: the days between the invoice date and acceptance by the SdI, how many were sent within the estimated deadline (12 days; for deferred invoices TD24 and TD25 the 15th of the following month), the channels and who sent them. Late ones also appear among the checks, as “Transmitted late”. For received invoices: the month the VAT deduction falls in, by the acceptance date (same month, by the 15th of the following month, later, or the next year).
The section only uses the bulk download metadata: the _MT_ files have no acceptance date. If only some of
the invoices have metadata, the dashboard says for how many. Deadlines and deduction periods are estimates from the
invoice date and the acceptance date: have them confirmed by your accountant.
All the steps from the ZIP to the Excel file are in the guide to the bulk download in Excel.