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
Arquivix Notas
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. Arquivix Notas 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 Arquivix Notas 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 Arquivix Notas yet (today SP and CE). 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, ICMS_REQUIRED, ICMS_RATE_REQUIRED, ICMS_ST_REQUIRED, ICMS_ST_MVA_REQUIRED, DIFAL_REQUIRED, DIFAL_NOT_APPLICABLE, IPI_RATE_REQUIRED, PIS_COFINS_RATE_REQUIRED, PAYMENTS_TOTAL_MISMATCH, RETURN_REFERENCE_MISSING, RETURN_PAYMENT_NOT_ALLOWED, REFERENCE_KEY_INVALID, TEXT_CHARSET_INVALID, OUT_OF_PHASE1_SCOPEIssues of details, each on its field.
SEFAZ_NO_ANSWER · SEFAZ_UNAVAILABLECommunication: Arquivix Notas checks or sends again by itself.
EMIT_INTERRUPTEDThe send stopped before reaching the SEFAZ: the note goes out again by itself. If it happens twice in a row, it ends rejected and nothing was transmitted; send it again.
NFE_SCHEMA_INVALIDThe signed XML failed the official schema before the send: nothing reached the SEFAZ and cStat is empty. message names the element.

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.