We use cookies and similar technologies, including Google Analytics and the Meta Pixel, to improve your experience, measure site traffic and understand signup campaigns. By clicking "Accept", you agree to this use.

Learn more about our privacy practices
Corvo
Português

NF-e: errors and hints

The three kinds of NF-e error, the codes you may see and what to do about each.

An error of a note (lastError) and a failed request both say who has to act with type:

`type`Who actsWhat to do
validationYouFix the fields in details (or, for a rejected note, what the SEFAZ refused) and send again.
configurationYouComplete the company (IE, CRT, address) or use a test key while production is off.
communicationNobodyThe SEFAZ did not answer. Corvo checks again by itself, without issuing twice.

A rejection by the SEFAZ comes with its cStat and xMotivo, plus a hint in plain words when Corvo knows how to fix it.

CodeMeaning
NFE_VALIDATION_FAILEDFields with problems; see details (path, code and message of each).
COMPANY_NFE_INCOMPLETEThe company lacks address, IE or CRT; details lists them.
STATE_REGISTRATION_INVALIDThe IE is not valid for the state of the company.
UF_NOT_ENABLEDA NFC-e for a state that has no NFC-e addresses in Corvo yet (today only SP). The NF-e has no such limit.
NFE_PRODUCTION_DISABLEDA live company asked for NF-e: production is not turned on yet. Use a test key.
CERTIFICATE_UNUSABLEThe A1 certificate is expired or invalid.
IDEMPOTENCY_KEY_REQUIRED, IDEMPOTENCY_KEY_INVALID, IDEMPOTENCY_KEY_REUSEDMissing header, wrong size, or one key used with two bodies.
INVOICE_OPERATION_NOT_SUPPORTEDThe operation does not exist for this type of note.
NFE_INVALID_STATEThe action does not apply to the current state of the note.
COMPANY_MISMATCHThe company of a rejected note cannot be changed on resubmission.
TAX_ID_INVALID, RECIPIENT_IE_INVALID, NCM_INVALID, CFOP_DESTINATION_MISMATCH, CSOSN_NOT_SUPPORTED, PAYMENTS_TOTAL_MISMATCH, TEXT_CHARSET_INVALID, OUT_OF_PHASE1_SCOPEIssues of details, each on its field.
SEFAZ_NO_ANSWER · SEFAZ_UNAVAILABLECommunication: Corvo checks or sends again by itself.

The dashboard shows each of these in plain Portuguese or English, with what to do next. Do not rely on the text of message: use code and type.