# SEFAZ Error Returns

Source: https://developer.avalara.com/invoice_goods_en/errors/sefaz_errors/

# SEFAZ Error Returns

Unlike the common [HTTP](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes "https://en.wikipedia.org/wiki/List_of_HTTP_status_codes") error codes mentioned in the previous section, when something happens when an AvaTax Brasil endpoint is called, we get errors back from SEFAZ, since the agency itself is responsible for the validation of the file. All validations and error list are contained in the manuals provided by SEFAZ.

We list the most common SEFAZ errors in the table below, however, as these validation rules change constantly, we recommend that you have the manual up to date when building and maintaining your integration. To be directed to the manuals section of the SEFAZ website, access  "[SEFAZ Documentation](https://www.nfe.fazenda.gov.br/portal/listaSubMenu.aspx?Id=04BIflQt1aY=&AspxAutoDetectCookieSupport=1)"

#### SEFAZ Main Errors

**Error code**

**Description**

204 - Duplicate NF-e

It occurs from the issuance of an Electronic Invoice (NF-e) or Electronic Consumer Invoice (NFC-e) with the same Access Key as another NF-e already authorized by Sefaz.

207 - Invalid CNPJ issuer 

It occurs due to errors in the imprecision of the CNPJ information (size and/or wrong placement of some numbers). When an invoice is issued, the message “Invalid Issuer CNPJ” appears.

362 - No Carrier Information

It occurs from the lack of identification of the carrier (CPF/CNPJ) in the issuance of an Electronic Invoice (NF-e) with the Tax Code of Operations and Services (CFOP).

539 - Duplicate NF-e, with a difference in the Access Key

Caused when an NF-e is issued when Sefaz already has another authorized NF-e.

600 - CSOSN incompatible in operation with Non-Contributor

It occurs when a note is issued to a Non-Contributing ICMS Recipient and with the Operation Situation Code - Simples Nacional (CSOSN) in relation to the data below:

-   102 - Taxation SN without credit permission;
-   103 - SN Taxation, with an exemption for the gross revenue range;
-   300 - Immune;
-   400 - Not taxed by Simples Nacional;
-   500 - ICMS previously charged for tax substitution or in anticipation.

 770 - CFOP nonexistent

Occurs when the CFOP Table is not correctly observed when issuing an NF-e, thus returning the message: "CFOP Nonexistent".

766 - Item with undue CST

Returns when there is an issue of NFC-e with ICMS Tax Situation Code (CST) different from the list below:

-   00 - Fully taxed;
-   20 - With reduction of the Calculation Basis;
-   40 - Exempt;
-   41 - Not taxed;
-   60 - ICMS previously charged for tax substitution;
-   90 - Others (at the discretion of the UF).

999 - Uncataloged error

It occurs due to some unavailability, failure, or intermittence of Sefaz.

This is a generic message for a failure in the Sefaz Application and exception cases. In other words, it is usually an indication that Sefaz is unavailable.

[Previous](/invoice_goods_en/errors/api_error_handling)

[Next](/invoice_goods_en/concepts/e-invoice)