E-invoice Preflight · Italy
SdI error codes explained
The 64 codes Italy's Sistema di Interscambio can put in a rejection receipt (ricevuta di scarto, a file ending in _NS_001.xml), read from the Agenzia delle Entrate's technical specification 1.9 (Allegato A, Appendix 1) and put in plain English. For each: what SdI refused, how to fix it, and whether a file-only check can catch it before you send. Have a receipt? Drop it into the checker with the invoice and it explains every code and says whether the checker reproduces it on that file.
File name, size and signature (00001-00107)
| Code | What SdI refused | How to fix it | Caught offline? |
|---|---|---|---|
| 00001 | The file name is not valid. | Name the file country code + sender's tax id + _ + a 5-character progressive, e.g. IT01234567890_00001.xml (specification 1.9, section 1.2.2). | No |
| 00002 | A file with this name was already sent. | Every file sent to SdI needs a name it has never seen: change the progressive part of the name and send it again. | No |
| 00003 | The file is larger than the channel allows. | Split the batch or reduce attachments (Allegati) and send again. | No |
| 00100 | The signing certificate has expired. | Sign again with a valid qualified certificate. | No |
| 00101 | The signing certificate is revoked. | Sign again with a valid qualified certificate. | No |
| 00102 | The file's electronic signature is not valid: the file was changed after it was signed, or the signature is broken. | Sign the final file again and send it without touching it afterwards (no re-saving, re-encoding or line-end changes). | No |
| 00103 | The qualified signature has no time reference. | Sign with a time reference. | No |
| 00104 | The certificate's issuing CA is not on the list of trusted CAs. | Sign with a certificate from a trusted (AgID-listed) CA. | No |
| 00105 | The signature's time reference is later than the time SdI received the file. | Check the signing device's clock and sign again. | No |
| 00106 | The compressed file is empty or cannot be read. | Rebuild the ZIP and check it opens before sending. | No |
| 00107 | The signing certificate is not valid. | Sign again with a valid qualified certificate. | No |
Format: the XSD schema (00200-00201)
| Code | What SdI refused | How to fix it | Caught offline? |
|---|---|---|---|
| 00200 | The file does not conform to the format (SdI's description names the exact point). | Correct the element SdI names; this tool's schema rules IT-018 to IT-022 check the same XSD 1.2.3. | Yes (IT-018, IT-019, IT-020, IT-021, IT-022) |
| 00201 | More than 50 format errors: SdI stopped checking and lists only the first ones. | Fix the listed errors, then check the whole file again; more will follow. | Yes (IT-018, IT-019, IT-020, IT-021, IT-022) |
Tax ids, destination code and the register (00300-00330)
| Code | What SdI refused | How to fix it | Caught offline? |
|---|---|---|---|
| 00300 | The transmitter's tax id (1.1.1.2 IdTrasmittente/IdCodice) is not valid. | Use the transmitter's partita IVA or codice fiscale exactly as registered. | In part (IT-034) |
| 00301 | The seller's VAT number (1.2.1.1.2 IdCodice) is not valid. | Use the seller's partita IVA exactly as registered. | In part (IT-003, INV-023) |
| 00303 | The tax representative's or third-party issuer's VAT number (1.3.1.1.2 or 1.4.4.1.2 IdCodice) is not valid. | Use that party's partita IVA exactly as registered. | No |
| 00305 | The buyer's VAT number (1.4.1.1.2 IdCodice) is not valid. | Use the buyer's partita IVA exactly as registered; ask the buyer for it if in doubt. | In part (IT-003, INV-023) |
| 00306 | The buyer's codice fiscale (1.4.1.2) is not valid (checked only when the buyer has no VAT number). | Use the buyer's codice fiscale from their tessera sanitaria or company record. | In part (IT-004) |
| 00311 | The CodiceDestinatario (1.1.4) is not valid. | Re-key the buyer's 7-character code (6 for a public body), or use 0000000. | In part (IT-002) |
| 00312 | The CodiceDestinatario (1.1.4) is not active. | Ask the buyer for their current code, or use 0000000 and let SdI place the invoice in their reserved area. | No |
| 00313 | CodiceDestinatario XXXXXXX is only for buyers not resident in Italy (the buyer's IdFiscaleIVA must be present with an IdPaese other than IT). | Use the buyer's real code, or 0000000, for an Italian buyer. | Yes (IT-002) |
| 00320 | The seller's VAT number and codice fiscale do not match each other. | Check both against the seller's registration. | No |
| 00321 | The seller's codice fiscale belongs to someone not in the VAT group. | Use the codice fiscale of the group member issuing the invoice. | No |
| 00322 | The seller's codice fiscale is missing with a VAT-group IdFiscaleIVA. | Add the issuing member's codice fiscale (1.2.1.2). | No |
| 00323 | The seller's VAT number was closed more than 5 years ago. | Use the seller's current partita IVA. | No |
| 00324 | The buyer's VAT number and codice fiscale do not match each other. | Check both with the buyer. | No |
| 00325 | The buyer's codice fiscale belongs to someone not in the VAT group. | Use the codice fiscale of the group member being invoiced. | No |
| 00326 | The buyer's codice fiscale is missing with a VAT-group IdFiscaleIVA. | Add the member's codice fiscale (1.4.1.2). | No |
| 00330 | PECDestinatario holds a value that is not allowed (SdI's own address). | Put the buyer's own PEC address, or leave it out. | Yes (IT-002) |
Content and arithmetic (00400-00477)
| Code | What SdI refused | How to fix it | Caught offline? |
|---|---|---|---|
| 00400 | A line at 0% VAT has no Natura (2.2.1.14). | Add the Natura code that explains why the line is not taxed. | Yes (IT-011) |
| 00401 | A line with a VAT rate above zero has a Natura (allowed only for TD16). | Remove Natura from taxed lines. | Yes (IT-011) |
| 00403 | The invoice date (2.1.1.3) is after the day SdI received the file. | Date the invoice no later than the day it is sent. | Yes (IT-009) |
| 00404 | Duplicate invoice: SdI already has one from this seller with the same year and number. | If the earlier one was accepted, do not resend it; a new invoice needs a new number. | No |
| 00409 | Duplicate invoice within the batch. | Give each invoice in the batch its own number. | No |
| 00411 | A line has Ritenuta SI but there is no DatiRitenuta block. | Add DatiRitenuta (2.1.1.5) or remove Ritenuta from the line. | Yes (IT-027) |
| 00413 | A pension-fund contribution at 0% has no Natura. | Add Natura to DatiCassaPrevidenziale. | Yes (IT-011) |
| 00414 | A taxed pension-fund contribution has a Natura. | Remove Natura from the taxed contribution. | Yes (IT-011) |
| 00415 | A pension-fund contribution has Ritenuta SI but there is no DatiRitenuta block. | Add DatiRitenuta (2.1.1.5). | Yes (IT-027) |
| 00417 | The buyer has neither IdFiscaleIVA nor CodiceFiscale. | Add at least one of the buyer's partita IVA or codice fiscale. | Yes (IT-005) |
| 00418 | The invoice date is before the date of the document it links to (2.1.6.3). | Check the linked document's date or the invoice date. | Yes (IT-033) |
| 00419 | A VAT rate used on a line or contribution has no DatiRiepilogo. | Add a DatiRiepilogo for every rate used. | Yes (IT-024) |
| 00420 | Natura N6.x (reverse charge) with EsigibilitaIVA S (split payment): the two regimes do not mix. | Use EsigibilitaIVA I or D for reverse-charge summaries. | Yes (IT-026) |
| 00421 | Imposta (2.2.2.6) is not AliquotaIVA × ImponibileImporto / 100, rounded half up to the cent, ±1 cent. | Recompute the VAT for that summary. | Yes (IT-014) |
| 00422 | ImponibileImporto (2.2.2.5) is not, per rate, the lines plus pension-fund contributions plus Arrotondamento, ±1 euro. | Recompute each rate's taxable base from the lines. | Yes (IT-015) |
| 00423 | PrezzoTotale (2.2.1.11) is not (PrezzoUnitario ± discount) × Quantita, ±1 cent. | Recompute the line total. | Yes (IT-012) |
| 00424 | A VAT rate is not written as a percentage (10% is 10.00, not 0.10). | Write rates as percentages. | In part (IT-021) |
| 00425 | The invoice number (2.1.1.4) has no digit. | Give the invoice number at least one digit. | Yes (IT-009) |
| 00427 | A 7-character CodiceDestinatario with FPA12, or a 6-character one with FPR12. | Public bodies have 6-character codes (FPA12); businesses 7 (FPR12). | Yes (IT-002) |
| 00428 | FormatoTrasmissione does not match the versione attribute. | Make both FPR12 or both FPA12. | Yes (IT-001) |
| 00429 | A DatiRiepilogo at 0% has no Natura. | Add Natura to the 0% summary. | Yes (IT-011) |
| 00430 | A DatiRiepilogo above 0% has a Natura (allowed only for TD16). | Remove Natura from taxed summaries. | Yes (IT-011) |
| 00437 | A document discount or surcharge has Tipo but neither Percentuale nor Importo. | Add Percentuale or Importo, or remove the block. | Yes (IT-028) |
| 00438 | A line discount or surcharge has Tipo but neither Percentuale nor Importo. | Add Percentuale or Importo, or remove the block. | Yes (IT-028) |
| 00443 | A VAT rate on a line or contribution is not among the DatiRiepilogo rates. | Add a summary for that rate. | Yes (IT-024) |
| 00444 | A Natura on a line or contribution is not among the DatiRiepilogo Natura codes. | Add a summary for that Natura. | Yes (IT-024) |
| 00445 | The bare Natura N2, N3 or N6 is no longer allowed (from 1 January 2021); use the detailed codes. | Use N2.1/N2.2, N3.1-N3.6 or N6.1-N6.9. | Yes (IT-011) |
| 00460 | A simplified invoice is over the EUR 400 limit. | Issue an ordinary invoice (FPR12). | No |
| 00471 | For this TipoDocumento the seller and the buyer must not be the same. | Check the parties, or the document type. | Yes (IT-031) |
| 00472 | For TD21 and TD27 the seller and the buyer must be the same. | Put the issuer in both parties. | Yes (IT-031) |
| 00473 | The seller's IdPaese is not allowed for this TipoDocumento (TD17/18/19/28 need a foreign seller; TD29 an Italian one). | Check the document type against the seller. | Yes (IT-023) |
| 00474 | A TD21 (self-invoice for exceeding the plafond) has a line at 0%. | Every TD21 line needs a VAT rate above zero. | Yes (IT-032) |
| 00475 | This TipoDocumento needs the buyer's IdFiscaleIVA. | Add the buyer's VAT number. | Yes (IT-029) |
| 00476 | Seller and buyer both have a non-Italian IdPaese. | SdI takes no invoice with no Italian party. | Yes (IT-030) |
| 00477 | A non-taxable sale under art. 8(1)(c) cites a declaration of intent that has been invalidated. | Check the declaration of intent with the buyer; tax the sale if it is no longer valid. | No |
Reading a receipt
SdI answers every file it receives. A rejection (NS) means the invoice counts as not issued; fix it and send it under a new file name, because SdI refuses a name it has already seen (00002). A delivery receipt (RC) means the invoice passed SdI's checks and reached the buyer. A could-not-deliver receipt (MC) means it passed but SdI could not reach the buyer's channel and put it in the buyer's reserved area. For public bodies there are also the buyer's outcome (NE: EC01 accepted, EC02 refused, with the buyer's reason), the deadline notice (DT) and the transmission attestation (AT).
A receipt's Hash is the SHA-256 of the file SdI received. The checker compares it with the invoice you drop beside it, so you know whether you are looking at exactly the file SdI saw.
Rule ids such as IT-003 are this tool's own, listed in the Italy page and the rule reference. Tested on 33 public SdI receipts and notices: the Agenzia's example messages and the receipts AgID's EeISI project received in 2019, including a real 00305 rejection that the checker reproduces on the rejected file.
Common questions
What is an SdI ricevuta di scarto?
It is the rejection receipt Italy's Sistema di Interscambio sends back when a FatturaPA file fails one of its checks. Its file name ends in _NS_ and a number, and its ListaErrori gives one five-digit code per fault. Under the Agenzia delle Entrate's technical specification 1.9 (section 1.6) a rejected invoice counts as not issued.
Which SdI errors can I catch before sending?
The format errors (00200) and most content errors (00400 to 00476) can be seen in the file itself, and this checker raises them offline. Errors that depend on the tax register (00300 to 00326), SdI's archive (00404) or the signature (00100 to 00107) cannot be seen in a file; for tax ids the checker catches only numbers that fail their check digit.
Can I check an SdI receipt with this tool?
Yes. Drop the receipt (NS, RC, MC, NE, DT or AT) into the checker, together with the invoice if you have it. Each error code is explained in English, the receipt is paired with the invoice by file name or SHA-256 hash, and each code is marked as reproduced or not by the checker on that file. Nothing is uploaded.