SdI rejection codes: what they mean and how to fix the invoice

What the codes of an SdI rejection notice mean (00404, 00305, 00423 and the others), how to fix the invoice and how to send it again.

When the Sistema di Interscambio (SdI) rejects an e-invoice, it sends whoever transmitted it a rejection notice (notifica di scarto): an XML file with one or more errors, each with a five-digit code and a technical description. Here you find the codes of the checks on the invoice, what they mean and how the invoice is usually fixed.

Where the rejection notice arrives

The notice comes back the way the invoice went out: to the PEC mailbox you sent it from, in the Fatture e Corrispettivi portal among the transmitted files, or in your invoicing software or from the intermediary who sends invoices for you. The file has the name of the invoice followed by _NS_ and a number, for example IT01234567890_00001_NS_001.xml, sometimes signed as .xml.p7m.

Opened as it is, the notice shows only the code and the text of the SdI. Upload the rejection notice to e-invoices.it to read it: for each error you see the explanation and the fix from this page. If you upload the rejected invoice with it, you also see the values of the fields concerned, such as the customer's VAT number or the VAT rates of the lines.

What to do after a rejection

An invoice rejected by the SdI is considered not issued: no credit note is needed. Correct it and send it again, preferably within 5 days of the rejection notice with the same number and the same date; if that is not possible, with a new number, a new date and a reference to the rejected invoice (Italian Revenue Agency circolare 13/E of 2 July 2018, § 1.6). The file sent again must have a different name, otherwise it is rejected as a duplicate file name (00002).

Italian Revenue Agency circolare 13/E of 2 July 2018 (PDF)

The rejection codes

The checks and codes are those of the FatturaPA technical specifications of the Agenzia delle Entrate (version 1.9), in the order the SdI runs them. For a code you do not find here, the SdI's description in the notice applies.

File name and size

The SdI first checks the file: its name, that it has not arrived before and that it is not too large.

File name and size
CodeMeaning and fix
00001 The file name does not follow the required form: country code, transmitter’s identifier, underscore and a unique sequence number (e.g. IT01234567890_00001.xml). How to fix it: Rename the file: IT, the VAT number or tax code (codice fiscale) of the transmitter, an underscore and a sequence number of at most 5 letters or digits, then .xml (.xml.p7m if signed).
00002 The SdI has already received a file with the same name. How to fix it: Send the file with a new name (another sequence number). The content of the invoice does not need to change for this error.
00003 The file exceeds the maximum allowed size of 5 MB. How to fix it: Reduce the attachments (e.g. compress the PDF courtesy copy or remove it) or split the batch into several files.

Digital signature and zip file

If the file is signed (.xml.p7m) or a zip, the SdI checks the signature and that the content can be read.

Digital signature and zip file
CodeMeaning and fix
00100001010010200103001040010500107 The file’s digital signature was not accepted (certificate expired, revoked or not valid, invalid signature, certification authority not recognised, time reference missing or later than receipt). How to fix it: Sign the file again with a valid certificate, or send it unsigned: for invoices between private parties (FPR12) a signature is not mandatory.
00106 The zip file sent is empty or cannot be read. How to fix it: Create the zip with the invoices again and send it again.

XML format

The file must follow the FatturaPA schema: mandatory fields, order of the elements, format of dates and amounts.

XML format
CodeMeaning and fix
00200 The file does not comply with the FatturaPA XML schema: a field is missing, in the wrong place or has a value in a format that is not allowed. The SdI description shows the exact point. How to fix it: Correct the element named in the description (format of dates and amounts, length of texts, mandatory fields, characters not allowed).
00201 The file has more than 50 format errors: the SdI stopped checking it. How to fix it: The file was probably generated incorrectly: generate it again from the invoicing software and check its settings.

VAT number, tax code and recipient

The SdI checks the VAT number and tax code of the transmitter, the supplier and the customer in the tax register (Anagrafe Tributaria), and that the recipient can be reached.

VAT number, tax code and recipient
CodeMeaning and fix
00300 The identifier of the party transmitting the file (IdTrasmittente) is not a valid tax code (codice fiscale) or VAT number. How to fix it: Check IdPaese and IdCodice in DatiTrasmissione/IdTrasmittente. Invoice fields: DatiTrasmissione/IdTrasmittente (IdPaese, IdCodice)
00301 The VAT number of the supplier (cedente/prestatore) is not valid in the Italian tax register (Anagrafe Tributaria). How to fix it: Check IdPaese and IdCodice of the supplier (cedente/prestatore): 11 digits, without the IT prefix inside IdCodice. Invoice fields: CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice)
00303 The VAT number of the fiscal representative (of the supplier or of the customer) is not valid. How to fix it: Check IdPaese and IdCodice of the fiscal representative shown. Invoice fields: RappresentanteFiscale/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CessionarioCommittente/RappresentanteFiscale/IdFiscaleIVA (IdPaese, IdCodice)
00305 The VAT number of the customer (cessionario/committente) is not valid in the Italian tax register (Anagrafe Tributaria): wrong, non-existent or closed. How to fix it: Check the customer’s IdPaese and IdCodice with the customer or with the Italian Revenue Agency’s VAT number check or VIES; the IT prefix goes in IdPaese, not in IdCodice. For a private individual without a VAT number, remove IdFiscaleIVA and enter only the CodiceFiscale. Invoice fields: CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CessionarioCommittente/DatiAnagrafici (CodiceFiscale)
00306 The customer’s tax code (codice fiscale) is not valid in the Italian tax register (Anagrafe Tributaria). How to fix it: Check the customer’s CodiceFiscale (16 characters for a person, 11 digits for a company) with the customer or their health insurance card (tessera sanitaria). Invoice fields: CessionarioCommittente/DatiAnagrafici (CodiceFiscale)
00311 The recipient code does not exist: it does not match any channel registered with the SdI. How to fix it: Ask the customer for the correct recipient code (7 characters for the private sector, 6 for the public administration). If they do not have one, use 0000000 (with their PEC address, if available); for a foreign customer, XXXXXXX. Invoice fields: DatiTrasmissione (FormatoTrasmissione, CodiceDestinatario, PECDestinatario)
00312 The recipient code exists but is not active. How to fix it: Ask the customer for the recipient code they currently use, or use 0000000. Invoice fields: DatiTrasmissione (FormatoTrasmissione, CodiceDestinatario, PECDestinatario)
00313 The recipient code XXXXXXX is only for foreign customers: the customer’s IdFiscaleIVA with an IdPaese other than IT is required. How to fix it: For an Italian customer, enter their recipient code or 0000000; for a foreign customer, check the country in IdFiscaleIVA. Invoice fields: DatiTrasmissione (FormatoTrasmissione, CodiceDestinatario, PECDestinatario); CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice)
00320 The supplier’s VAT number and tax code (codice fiscale) do not belong to the same party. How to fix it: Check IdFiscaleIVA and CodiceFiscale of the supplier (cedente/prestatore). Invoice fields: CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CedentePrestatore/DatiAnagrafici (CodiceFiscale)
00321 The supplier’s tax code (codice fiscale) does not belong to a member of the VAT group given by the VAT number. How to fix it: Enter the tax code (codice fiscale) of the VAT group member issuing the invoice. Invoice fields: CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CedentePrestatore/DatiAnagrafici (CodiceFiscale)
00322 The supplier’s VAT number belongs to a VAT group, but the tax code (codice fiscale) of the member issuing the invoice is missing. How to fix it: Add the CodiceFiscale of the VAT group member. Invoice fields: CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CedentePrestatore/DatiAnagrafici (CodiceFiscale)
00323 The supplier’s VAT number was closed more than 5 years ago. How to fix it: Check the VAT number given for the supplier (cedente/prestatore). Invoice fields: CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice)
00324 The customer’s VAT number and tax code (codice fiscale) do not belong to the same party. How to fix it: Check the customer’s IdFiscaleIVA and CodiceFiscale; if in doubt, enter only the VAT number. Invoice fields: CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CessionarioCommittente/DatiAnagrafici (CodiceFiscale)
00325 The customer’s tax code (codice fiscale) does not belong to a member of the VAT group given by the VAT number. How to fix it: Ask the customer for the tax code (codice fiscale) of the VAT group member. Invoice fields: CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CessionarioCommittente/DatiAnagrafici (CodiceFiscale)
00326 The customer’s VAT number belongs to a VAT group, but the tax code (codice fiscale) of the member the invoice is addressed to is missing. How to fix it: Add the CodiceFiscale of the member; ask the customer for it. Invoice fields: CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CessionarioCommittente/DatiAnagrafici (CodiceFiscale)
00330 The recipient’s PEC address is not allowed (for example, an address of the SdI itself). How to fix it: Enter the customer’s PEC address in PECDestinatario, or leave it empty. Invoice fields: DatiTrasmissione (FormatoTrasmissione, CodiceDestinatario, PECDestinatario)

Amounts, VAT rates and invoice data

The last group of checks concerns the content: number and date, duplicate invoices, VAT rates and Natura, withholding tax, the totals of the VAT summary and the document types of supplements and self-invoices.

Amounts, VAT rates and invoice data
CodeMeaning and fix
0040000401 On a line, the VAT rate and the Natura code do not match: a zero rate requires a Natura (because VAT is not applied); with a rate other than zero, no Natura must be given. How to fix it: On the lines shown: if the transaction is without VAT, enter the correct Natura (N1–N7, with the sub-code, e.g. N2.2); if it has VAT, remove the Natura. Invoice fields: DatiBeniServizi/DettaglioLinee (NumeroLinea, AliquotaIVA, Natura)
00403 The invoice date is later than the day the SdI received it: an invoice cannot be dated in the future. How to fix it: Correct the document Data (at the latest, the date of sending). Invoice fields: DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero)
00404 The SdI has already received an invoice from the same supplier with the same number in the same year (for credit notes, also with the same document type). How to fix it: If the previous invoice was accepted, this one is a duplicate: do not send it again. If it really needs to be issued, use a new number. If the previous one was rejected, the number can be reused. Invoice fields: CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero)
00409 The same file (batch) contains two invoices with the same number in the same year. How to fix it: Give each invoice in the batch a different number, or remove the duplicate. Invoice fields: DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero)
00411 At least one line is subject to withholding tax (Ritenuta = SI), but the DatiRitenuta block with the withholding tax details is missing. How to fix it: Add DatiRitenuta (type, amount, rate, reason) or remove Ritenuta = SI from the lines not subject to withholding tax. Invoice fields: DatiBeniServizi/DettaglioLinee (NumeroLinea, Ritenuta); DatiGenerali/DatiGeneraliDocumento/DatiRitenuta (TipoRitenuta, ImportoRitenuta, AliquotaRitenuta, CausalePagamento)
0041300414 In the pension fund contribution the VAT rate and the Natura code do not match: a zero rate requires a Natura, otherwise none must be given. How to fix it: Correct AliquotaIVA or Natura in DatiCassaPrevidenziale. Invoice fields: DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale (TipoCassa, ImportoContributoCassa, AliquotaIVA, Ritenuta, Natura)
00415 The pension fund contribution is subject to withholding tax (Ritenuta = SI), but the DatiRitenuta block is missing. How to fix it: Add DatiRitenuta or remove Ritenuta = SI from the pension fund contribution. Invoice fields: DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale (TipoCassa, ImportoContributoCassa, AliquotaIVA, Ritenuta, Natura); DatiGenerali/DatiGeneraliDocumento/DatiRitenuta (TipoRitenuta, ImportoRitenuta, AliquotaRitenuta, CausalePagamento)
00417 Neither the customer’s VAT number nor their tax code (codice fiscale) is given. How to fix it: Enter the customer’s VAT number (IdFiscaleIVA) or, for a private individual, their CodiceFiscale. Invoice fields: CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CessionarioCommittente/DatiAnagrafici (CodiceFiscale)
00418 The invoice date is earlier than the date of an invoice it refers to (typically a credit note dated before the invoice it corrects). How to fix it: Correct the document Data or the date in DatiFattureCollegate. Invoice fields: DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero); DatiGenerali/DatiFattureCollegate (IdDocumento, Data)
00419 For a VAT rate used in the lines (or in the pension fund contribution), the DatiRiepilogo summary block is missing. How to fix it: Add a DatiRiepilogo for each VAT rate (and Natura) used in the lines. Invoice fields: DatiBeniServizi/DettaglioLinee (NumeroLinea, AliquotaIVA, Natura); DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale (TipoCassa, ImportoContributoCassa, AliquotaIVA, Ritenuta, Natura); DatiBeniServizi/DatiRiepilogo (AliquotaIVA, Natura, ImponibileImporto, Imposta, EsigibilitaIVA, Arrotondamento)
00420 The summary combines Natura N6 (reverse charge) with chargeability S (split payment): the two rules exclude each other. How to fix it: Use one or the other: with N6, EsigibilitaIVA is not S. Invoice fields: DatiBeniServizi/DatiRiepilogo (AliquotaIVA, Natura, ImponibileImporto, Imposta, EsigibilitaIVA, Arrotondamento)
00421 In the VAT summary the tax does not match taxable amount × rate / 100, rounded to 2 decimals (tolerance 1 cent). How to fix it: Recalculate Imposta for the DatiRiepilogo block shown. Invoice fields: DatiBeniServizi/DatiRiepilogo (AliquotaIVA, Natura, ImponibileImporto, Imposta, EsigibilitaIVA, Arrotondamento)
00422 In the VAT summary the taxable amount does not match the sum of the PrezzoTotale of the lines with that rate/Natura, plus pension fund contributions and rounding (tolerance 1 euro). How to fix it: Recalculate ImponibileImporto from the lines, or enter the difference in Arrotondamento. Invoice fields: DatiBeniServizi/DettaglioLinee (NumeroLinea, Quantita, PrezzoUnitario, ScontoMaggiorazione/Tipo, ScontoMaggiorazione/Percentuale, ScontoMaggiorazione/Importo, PrezzoTotale); DatiBeniServizi/DatiRiepilogo (AliquotaIVA, Natura, ImponibileImporto, Imposta, EsigibilitaIVA, Arrotondamento)
00423 On a line, PrezzoTotale does not match (PrezzoUnitario ± discounts and surcharges) × Quantita (tolerance 1 cent). The SdI description shows the line. How to fix it: Recalculate the line’s PrezzoTotale, or correct the quantity, price or discount. Invoice fields: DatiBeniServizi/DettaglioLinee (NumeroLinea, Quantita, PrezzoUnitario, ScontoMaggiorazione/Tipo, ScontoMaggiorazione/Percentuale, ScontoMaggiorazione/Importo, PrezzoTotale)
00424 A VAT rate is not given as a percentage (for example 0.22 instead of 22.00). How to fix it: Enter the VAT rates as percentages with 2 decimals: 22.00, 10.00, 4.00. Invoice fields: DatiBeniServizi/DettaglioLinee (NumeroLinea, AliquotaIVA, Natura); DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale (TipoCassa, ImportoContributoCassa, AliquotaIVA, Ritenuta, Natura); DatiBeniServizi/DatiRiepilogo (AliquotaIVA, Natura, ImponibileImporto, Imposta, EsigibilitaIVA, Arrotondamento)
00425 The invoice number does not contain any digit. How to fix it: The number must contain at least one numeric character (e.g. 2025/1, A12). Invoice fields: DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero)
00427 The recipient code does not have the right format: 7 characters for an invoice between private parties (FPR12), 6 for an invoice to the public administration (FPA12). How to fix it: Correct FormatoTrasmissione or CodiceDestinatario: for the public administration, the 6-character unique office code (codice univoco ufficio) and the FPA12 format. Invoice fields: DatiTrasmissione (FormatoTrasmissione, CodiceDestinatario, PECDestinatario)
00428 The FormatoTrasmissione does not match the version stated in the file (versione attribute: FPR12 or FPA12). How to fix it: Make FormatoTrasmissione and the versione attribute of the root element the same. Invoice fields: DatiTrasmissione (FormatoTrasmissione, CodiceDestinatario, PECDestinatario)
0042900430 In the VAT summary the rate and the Natura code do not match: a zero rate requires a Natura; with a rate other than zero, none must be given. How to fix it: Correct the DatiRiepilogo block shown so that it matches the lines with the same VAT rate and Natura. Invoice fields: DatiBeniServizi/DatiRiepilogo (AliquotaIVA, Natura, ImponibileImporto, Imposta, EsigibilitaIVA, Arrotondamento)
00437 The document has a discount or surcharge (Tipo) without a percentage or an amount. How to fix it: Enter Percentuale or Importo, or remove ScontoMaggiorazione. Invoice fields: DatiGenerali/DatiGeneraliDocumento/ScontoMaggiorazione (Tipo, Percentuale, Importo)
00438 A line has a discount or surcharge (Tipo) without a percentage or an amount. How to fix it: Enter Percentuale or Importo in the line, or remove the discount. Invoice fields: DatiBeniServizi/DettaglioLinee/ScontoMaggiorazione (Tipo, Percentuale, Importo)
00443 The VAT rates of the lines (or of the pension fund contribution) do not match those of the summary: there is a summary for a rate that is not used, or the other way round. How to fix it: Create a DatiRiepilogo for each VAT rate used in the lines, and no others. Invoice fields: DatiBeniServizi/DettaglioLinee (NumeroLinea, AliquotaIVA, Natura); DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale (TipoCassa, ImportoContributoCassa, AliquotaIVA, Ritenuta, Natura); DatiBeniServizi/DatiRiepilogo (AliquotaIVA, Natura, ImponibileImporto, Imposta, EsigibilitaIVA, Arrotondamento)
00444 The Natura codes of the lines (or of the pension fund contribution) do not match those of the summary. How to fix it: Create a DatiRiepilogo for each Natura used in the lines, with the same code. Invoice fields: DatiBeniServizi/DettaglioLinee (NumeroLinea, AliquotaIVA, Natura); DatiGenerali/DatiGeneraliDocumento/DatiCassaPrevidenziale (TipoCassa, ImportoContributoCassa, AliquotaIVA, Ritenuta, Natura); DatiBeniServizi/DatiRiepilogo (AliquotaIVA, Natura, ImponibileImporto, Imposta, EsigibilitaIVA, Arrotondamento)
00445 A generic Natura code (N2, N3 or N6) is used, which is no longer allowed: a sub-code is required. How to fix it: Replace it with the appropriate sub-code, e.g. N2.1 or N2.2, N3.1–N3.6, N6.1–N6.9, on the lines and in the summary. Invoice fields: DatiBeniServizi/DettaglioLinee (NumeroLinea, AliquotaIVA, Natura); DatiBeniServizi/DatiRiepilogo (AliquotaIVA, Natura, ImponibileImporto, Imposta, EsigibilitaIVA, Arrotondamento)
00460 A simplified invoice exceeds the maximum allowed amount (400 euros). How to fix it: Issue a standard invoice (FPR12, TD01).
00471 With this document type the supplier and the customer cannot be the same party. How to fix it: Check TipoDocumento (e.g. a self-invoice has its own TD type) and the customer details. Invoice fields: DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero); CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice)
00472 With this document type (TD21 or TD27, self-invoice) the supplier and the customer must be the same party. How to fix it: Enter yourself as the customer (cessionario/committente) too, or change TipoDocumento. Invoice fields: DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero); CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice)
00473 With this document type the supplier’s country is not allowed: for the integrations and self-invoices TD17, TD18, TD19 and TD28 the supplier is foreign, for TD29 Italian. How to fix it: Enter the (foreign) supplier and their country as cedente, or correct TipoDocumento. Invoice fields: DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero); CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice)
00474 With this document type (TD21, self-invoice for exceeding the VAT-free purchase ceiling) lines with a zero VAT rate are not allowed. How to fix it: Enter the VAT rate applied on each line. Invoice fields: DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero); DatiBeniServizi/DettaglioLinee (NumeroLinea, AliquotaIVA, Natura)
00475 With this document type (integrations and self-invoices TD16–TD20, TD22, TD23, TD28, TD29) the VAT number of the customer, i.e. of whoever integrates the invoice, is required. How to fix it: Enter the IdFiscaleIVA of the customer (cessionario/committente). Invoice fields: DatiGenerali/DatiGeneraliDocumento (TipoDocumento, Data, Numero); CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice)
00476 The supplier and the customer are both foreign (IdPaese other than IT): at least one must be Italian. How to fix it: Check the supplier’s and the customer’s country. Invoice fields: CedentePrestatore/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice); CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA (IdPaese, IdCodice)
00477 The invoice is not subject to VAT for a habitual exporter (art. 8 c. 1 lett. c DPR 633/72), but the declaration of intent (dichiarazione d’intento) given has been invalidated. How to fix it: Check the declaration of intent (dichiarazione d’intento) with the customer (protocol number in AltriDatiGestionali, TipoDato INTENTO); without a valid declaration, VAT must be charged. Invoice fields: DatiBeniServizi/DettaglioLinee/AltriDatiGestionali (TipoDato, RiferimentoTesto, RiferimentoData)

Explanations for guidance only, not tax advice: e-invoices.it does not check invoices before they are sent, and a correct invoice can be rejected for another reason. If you have questions about VAT, ask your accountant.

Try it with your invoices

Free with no sign-up, up to 20 invoices at a time. Files are not stored.

Upload your invoices

More guides