> For the complete documentation index, see [llms.txt](https://docs.vrsoft.com.br/vrmaster/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vrsoft.com.br/vrmaster/gestao-do-conhecimento/gestao-do-conhecimento-vr-master/gestao-do-conhecimento-vr-master-fiscal/gestao-do-conhecimento-vr-erp-fiscal-escrituracao/nao-foi-possivel-gerar-codigo-fiscal.md).

# NAO FOI POSSIVEL GERAR CODIGO FISCAL

**Ocorre ao realizar a consistência de log quando o tipo de saída do sistema está com as configurações erradas.**

1 - Acesse o menu: Fiscal / Escrituração / Nota Fiscal; 2 - Clique em parametrizar(![](/files/ag3zAul1wpwxo58opMLI); 3 - Acerte o campo "Tipo Nota Saída PDV" para "MAPA RESUMO - PDV" (código 15). Neste tipo de saída devem conter um CFOP de venda e um CFOP de Substituição, caso contrário a mensagem também será exibida; 4 - Salve as alterações.

**Ocorre quando não há um CFOP vinculado ao tipo da nota.**

1 - Acesse a Nota Fiscal que está com a mensagem; 2 - Clique no botão incluir (![](/files/vNgoA0By55eJikqOgS7Z); 3 - Clique no botão abrir tela consulta (![](/files/m9woU7dXMZcH11F97UAI); 4 - Encontre o tipo da nota que está sendo lançada; 5 - Selecione o tipo da nota e clique no botão editar(![](/files/nujdCyY0DzmCYpQCT2se); 6 - Clique no botão adicionar (![](/files/aAN1Do3IFk2znJQIx387) no canto inferior da tela; 7 - Selecione o CFOP referente ao tipo da nota e salve todas as telas, em seguida lance a tela novamente.

**Ocorre quando um ou mais produtos da nota está sem um CFOP vinculado. Isso acontece porque o tipo da nota está com CFOPs de fora do estado sendo que a nota fiscal vem de dentro do estado.**

1 - Acesse o tipo da nota que está sendo carregado na nota fiscal. 2 - Vincule os CFOPs correto para o tipo de nota e clique em salvar. 3 - Lance a nota fiscal novamente.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.vrsoft.com.br/vrmaster/gestao-do-conhecimento/gestao-do-conhecimento-vr-master/gestao-do-conhecimento-vr-master-fiscal/gestao-do-conhecimento-vr-erp-fiscal-escrituracao/nao-foi-possivel-gerar-codigo-fiscal.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
