Understanding Contingency Processes

An emission type is the procedure that the system uses to generate an NFe. Under normal circumstances, you follow a standard procedure to transmit an NFe to SEFAZ. You generate and transmit the NFe, obtain approval from SEFAZ, print the DANFe on standard paper, and ship the merchandise.

However, if SEFAZ Web site is not operating or you are not able to generate the NFe, you can use a contingency process to generate a contingency NFe. The system provides the following contingency processes to transmit an NFe:

  • SVC Contingency

    Use the SVC contingency method when the normal emission type is unavailable. There are two different environments and emission types for the SVC contingency process: SVC-AN (SEFAZ Virtual de Contingência - Ambiente Nacional) and SVC-RS (SEFAZ Virtual de Contingência - Rio Grande do Sul).

    In the SVC contingency process, you follow these steps:

    1. Change the NFe emission type value to 6 for SVC-AN contingencies or to 7 for SVC-RS contingencies.

    2. Generate the NFe.

      If you are regenerating the NFe after a failed attempt of sending a normal NFe, the system renumbers the access key changing the digit that indicates the emission type and the check digit, to avoid processing duplicated documents.

    3. Transmit the SVC NFe.

      If a normal XML file was sent out before sending the SVC XML file, the system marks the old NFe as unused. You do not need to do this manually.

      The system transmits a new XML containing the NFe information to SVC-AN or SVC-RS. You do not need to transmit an XML to the normal SEFAZ site.

    4. Print DANFe.

      The system prints the DANFe on common stock paper.

    5. Ship merchandise.

  • FS and FS-DA Contingencies

    Use the FS (Formulario de Securanza or Security Form) or FS-DA (Formulario de Securanza - Documento Auxiliar or Auxiliary Document Security Form) contingency method if there are errors when you transfer the NFe or NFC-e XML file to SEFAZ. In the FS and FS-DA contingency processes, you follow these steps:

    1. Change NFe emission type to 2 for FS contingencies and 5 for FS-DA contingencies.

    2. Regenerate the NFe on the FS or FS-DA form, with legend "DANFe em Contingência - impresso emdecorrência de problemas técnicos.". This status allows companies to release the sales order and send the goods to the customer.

    3. Print two copies.

    4. Transmit NFe.

    5. Enter the form NFe number, date, hour and remark "DANFe in contingency" in the NFe Response Process and Contingencies program (P76B12TE) so that the NFe number matches the pre-printed form.

    6. Print FS or FS-DA DANFe.

    7. Store a copy of the FS or FS-DA DANFe.

    8. Ship merchandise.

    9. Send the XML file to SEFAZ when the Web site becomes available.

  • EPEC/DPEC Contingency

    In the EPEC (Evento Previo de Emissao em Contingencia) or DPEC (Declaracao Previa de Emissao em Contingencia) contingency process, you follow these steps:

    1. Change NFe emission type to 4 for EPEC/DPEC contingencies.

    2. Regenerate NFe with a reduced set of tags, data, and digital signature. The system generates two XML files: the usual XML file (with type equal to 4) and a summary version of the XML.

    3. Generate the EPEC/DPEC file.

    4. Transmit the NFe and EPEC/DPEC file.

      The system sends the XML file to the fiscal authority Electronic Contingency System using Web services or uploads it to the Portal Nacional da NF.

    5. Print the DANFe after the SEFAZ accepts the NFe. Change the NFe to status D to submit the NFe Info Generation program (R76B561).

      The system prints the DANFe on common stock paper with the legend "DANFe impresso em contingência - DPEC regularmente recebida pela Receita Federal do Brasil."for national NFe DANFE. The print message for end-consumer transaction DANFE states "DANFe impresso em contingência - DPEC regularmente recebida pela SEFAZ autorizadora."

      The system prints the DANFe on common stock paper with the legend "DANFe impresso em contingência - DPEC regularmente recebida pela Receita Federal do Brasil.".

    6. Store a copy of the DANFe.

    7. Ship merchandise.

    8. Transmit the NF-e once technical issues are fixed. When you receive the approval for the EPEC/DPEC complete XML file (type equal to 4), change the NF-e to the final status A.

  • Offline NFC-e Contingency

    In the offline NFC-e contingency process, you follow these steps:

    1. Change the NFe emission type to 9 for Offline NFC-e Contingency.

    2. Regenerate the NFC-e with the contingency reason and the date and time.

    3. Generate the offline NFC-e contingency XML file.

    4. Print DANFe for the end consumer.

      The system prints the DANFe on common stock paper with legend "EMITIDA EM CONTINGÊNCIA"

    5. After the technical issues are fixed, transmit the NFC-e within 24 hours following from the emission time.

    6. When you receive the approval from the fiscal authority, complete the XML file (type equal to 9), and change the NFC-e to the final status A.