Ir para conteúdo
  • Cadastre-se

dev botao

  • Este tópico foi criado há 2515 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

Postado

Olá,

Estou criando rotinas no sistema para melhorar a utilização do SAT, por conta de alguns SAT que ficam em processamento.

Fazendo uns teste me deparei com um problema no ConsultaNumeroSessao.

Após enviar uma venda para o SAT, eu encerrei o aplicativo para forçar o erro, com isso quando executudo o ConsultaNumeroSessao o retorno fica faltando o começo do retorno original.

Estou utilizando o SAT de desenvolvedor da Daruma DS-100i.

Este eu fiz a Consulta sem finalizar o aplicativo para testar. Tudo certo, sem nenhum problema. Consultei duas vezes e a segunda não retorna como deve ser.

19/12/17 13:27:56:669 - NumeroSessao: 978572 - Comando: EnviarDadosVenda( <?xml version="1.0" encoding="UTF-8"?><CFe>
   <infCFe versaoDadosEnt="0.07">
      <ide>
         <CNPJ>16716114000172</CNPJ>
         <signAC>SGR-SAT SISTEMA DE GESTAO E RETAGUARDA DO SAT</signAC>
         <numeroCaixa>002</numeroCaixa>
      </ide>
      <emit>
         <CNPJ>45170289000125</CNPJ>
         <IE>688023460111</IE>
         <IM>111111</IM>
         <indRatISSQN>N</indRatISSQN>
      </emit>
      <dest>
      </dest>
      <det nItem="1">
         <prod>
            <cProd>4</cProd>
            <xProd>COXAO DURO</xProd>
            <NCM>02013000</NCM>
            <CFOP>5102</CFOP>
            <uCom>KG</uCom>
            <qCom>1.0000</qCom>
            <vUnCom>20.99</vUnCom>
            <indRegra>A</indRegra>
         </prod>
         <imposto>
            <vItem12741>3.40</vItem12741>
            <ICMS>
               <ICMSSN102>
                  <Orig>0</Orig>
                  <CSOSN>102</CSOSN>
               </ICMSSN102>
            </ICMS>
            <PIS>
               <PISSN>
                  <CST>49</CST>
               </PISSN>
            </PIS>
            <COFINS>
               <COFINSSN>
                  <CST>49</CST>
               </COFINSSN>
            </COFINS>
         </imposto>
      </det>
      <det nItem="2">
         <prod>
            <cProd>5</cProd>
            <xProd>PATINHO</xProd>
            <NCM>02013000</NCM>
            <CFOP>5102</CFOP>
            <uCom>KG</uCom>
            <qCom>1.0000</qCom>
            <vUnCom>21.99</vUnCom>
            <indRegra>A</indRegra>
         </prod>
         <imposto>
            <vItem12741>3.56</vItem12741>
            <ICMS>
               <ICMSSN102>
                  <Orig>0</Orig>
                  <CSOSN>102</CSOSN>
               </ICMSSN102>
            </ICMS>
            <PIS>
               <PISSN>
                  <CST>49</CST>
               </PISSN>
            </PIS>
            <COFINS>
               <COFINSSN>
                  <CST>49</CST>
               </COFINSSN>
            </COFINS>
         </imposto>
      </det>
      <det nItem="3">
         <prod>
            <cProd>6</cProd>
            <xProd>PONTA DE ALCATRA</xProd>
            <NCM>02013000</NCM>
            <CFOP>5102</CFOP>
            <uCom>KG</uCom>
            <qCom>1.0000</qCom>
            <vUnCom>19.90</vUnCom>
            <indRegra>A</indRegra>
         </prod>
         <imposto>
            <vItem12741>3.22</vItem12741>
            <ICMS>
               <ICMSSN102>
                  <Orig>0</Orig>
                  <CSOSN>102</CSOSN>
               </ICMSSN102>
            </ICMS>
            <PIS>
               <PISSN>
                  <CST>49</CST>
               </PISSN>
            </PIS>
            <COFINS>
               <COFINSSN>
                  <CST>49</CST>
               </COFINSSN>
            </COFINS>
         </imposto>
      </det>
      <total>
         <vCFeLei12741>10.19</vCFeLei12741>
      </total>
      <pgto>
         <MP>
            <cMP>01</cMP>
            <vMP>62.88</vMP>
         </MP>
      </pgto>
      <infAdic>
         <infCpl>Operador: 1 - Caixa: CAIXA 002 - Venda: 86;OBRIGADO. VOLTE SEMPRE.;Trib aprox R$ : 2,641 Federal e 7,546 Estadual Fonte: IBPT/FECOMERCIO (M2L5P8)</infCpl>
      </infAdic>
   </infCFe>
</CFe> )
19/12/17 13:27:56:695 -   Gravando XML Venda enviado: E:\ValeERP 1.2\Venda\bin\CFe\Enviado\45170289000125\201712\AD20171219132756-978572-env.xml
19/12/17 13:27:58:064 - NumeroSessao: 978572 - Resposta:978572|06000|0000|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U5bXFEcjBWUW10SzRaZlRHNW9zRzJSRmEzUkcvck9TMFZGaXVMQkNmYzBsd1BuV2lFUHIzMnJZUVlmeTZWVTEwQlNwVXp6Szl3PTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPjwvQ0ZlPg==|20171219132755|CFe35171245170289000125599000112040000628549807|62.88||snyopQk+T2n4IE4Y23DLLl+yHud4izLZ21k/PgjW9K7/LiU+7d3zBZoivPLpF6L3BCIG5z1IZhhVk+d+9vGR7x3YK6amhWnF6gbxKjfp+EHsrQ4nU6coQptZ30mDlNp4e2PWx1DIsE5W5WzUQ0aEHIL7m60T/k06iAfROyUQaGU4dgiN3KfCx91nfmB6zJyipF50XkljW5mie0NemJ3Eo0QC8YsswUnV10O4Jgtx6hxLKXblWDIznF+V6SJMWkS0x0XRUdRjiBhIM9ig5wocWmLnxaAEOn2kjCuKbtcR9w678b288ItTiZ0pUMXcbMF/QwD6ldoosiXxcLX+L07+Ww==
19/12/17 13:27:58:113 -   Gravando XML Venda recebido: E:\ValeERP 1.2\Venda\bin\CFe\Vendas\45170289000125\201712\AD35171245170289000125599000112040000628549807.xml
19/12/17 13:28:35:031 - NumeroSessao: 227576 - Comando: ConsultarNumeroSessao( 978572 )
19/12/17 13:29:23:409 - NumeroSessao: 227576 - Resposta:978572|06000|0000|EMITIDO COM SUCESSO|||PENGZT48aW5mQ0ZlIElkPSJDRmUzNTE3MTI0NTE3MDI4OTAwMDEyNTU5OTAwMDExMjA0MDAwMDYyODU0OTgwNyIgdmVyc2FvPSIwLjA3IiB2ZXJzYW9EYWRvc0VudD0iMC4wNyIgdmVyc2FvU0I9IjAxMDAwMCI+PGlkZT48Y1VGPjM1PC9jVUY+PGNORj44NTQ5ODA8L2NORj48bW9kPjU5PC9tb2Q+PG5zZXJpZVNBVD45MDAwMTEyMDQ8L25zZXJpZVNBVD48bkNGZT4wMDAwNjI8L25DRmU+PGRFbWk+MjAxNzE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QptZ30mDlNp4e2PWx1DIsE5W5WzUQ0aEHIL7m60T/k06iAfROyUQaGU4dgiN3KfCx91nfmB6zJyipF50XkljW5mie0NemJ3Eo0QC8YsswUnV10O4Jgtx6hxLKXblWDIznF+V6SJMWkS0x0XRUdRjiBhIM9ig5wocWmLnxaAEOn2kjCuKbtcR9w678b288ItTiZ0pUMXcbMF/QwD6ldoosiXxcLX+L07+Ww==
19/12/17 13:29:25:439 -    Sessao [978572] recuperada com sucesso
19/12/17 13:29:33:550 -   Gravando XML Venda recebido: E:\ValeERP 1.2\Venda\bin\CFe\Vendas\45170289000125\201712\AD35171245170289000125599000112040000628549807.xml
19/12/17 13:29:59:173 - NumeroSessao: 665573 - Comando: ConsultarNumeroSessao( 978572 )
19/12/17 13:29:59:795 - NumeroSessao: 665573 - Resposta:665573|11003|SESSAO NAO EXISTE||
19/12/17 13:30:07:846 - ACBrSAT.DesInicializado

 

Agora se eu fechar, olha como fica:

19/12/17 13:30:08:100 - NumeroSessao: 884828 - Resposta:884828|08000|SAT EM OPERACAO||
19/12/17 13:30:08:103 - NumeroSessao: 500749 - Comando: EnviarDadosVenda( <?xml version="1.0" encoding="UTF-8"?><CFe>
   <infCFe versaoDadosEnt="0.07">
      <ide>
         <CNPJ>16716114000172</CNPJ>
         <signAC>SGR-SAT SISTEMA DE GESTAO E RETAGUARDA DO SAT</signAC>
         <numeroCaixa>002</numeroCaixa>
      </ide>
      <emit>
         <CNPJ>45170289000125</CNPJ>
         <IE>688023460111</IE>
         <IM>111111</IM>
         <indRatISSQN>N</indRatISSQN>
      </emit>
      <dest>
      </dest>
      <det nItem="1">
         <prod>
            <cProd>4</cProd>
            <xProd>COXAO DURO</xProd>
            <NCM>02013000</NCM>
            <CFOP>5102</CFOP>
            <uCom>KG</uCom>
            <qCom>1.0000</qCom>
            <vUnCom>20.99</vUnCom>
            <indRegra>A</indRegra>
         </prod>
         <imposto>
            <vItem12741>3.40</vItem12741>
            <ICMS>
               <ICMSSN102>
                  <Orig>0</Orig>
                  <CSOSN>102</CSOSN>
               </ICMSSN102>
            </ICMS>
            <PIS>
               <PISSN>
                  <CST>49</CST>
               </PISSN>
            </PIS>
            <COFINS>
               <COFINSSN>
                  <CST>49</CST>
               </COFINSSN>
            </COFINS>
         </imposto>
      </det>
      <det nItem="2">
         <prod>
            <cProd>5</cProd>
            <xProd>PATINHO</xProd>
            <NCM>02013000</NCM>
            <CFOP>5102</CFOP>
            <uCom>KG</uCom>
            <qCom>1.0000</qCom>
            <vUnCom>21.99</vUnCom>
            <indRegra>A</indRegra>
         </prod>
         <imposto>
            <vItem12741>3.56</vItem12741>
            <ICMS>
               <ICMSSN102>
                  <Orig>0</Orig>
                  <CSOSN>102</CSOSN>
               </ICMSSN102>
            </ICMS>
            <PIS>
               <PISSN>
                  <CST>49</CST>
               </PISSN>
            </PIS>
            <COFINS>
               <COFINSSN>
                  <CST>49</CST>
               </COFINSSN>
            </COFINS>
         </imposto>
      </det>
      <det nItem="3">
         <prod>
            <cProd>2</cProd>
            <xProd>ALCATRA</xProd>
            <NCM>02013000</NCM>
            <CFOP>5102</CFOP>
            <uCom>KG</uCom>
            <qCom>1.0000</qCom>
            <vUnCom>14.68</vUnCom>
            <indRegra>A</indRegra>
         </prod>
         <imposto>
            <vItem12741>2.38</vItem12741>
            <ICMS>
               <ICMSSN102>
                  <Orig>0</Orig>
                  <CSOSN>102</CSOSN>
               </ICMSSN102>
            </ICMS>
            <PIS>
               <PISSN>
                  <CST>49</CST>
               </PISSN>
            </PIS>
            <COFINS>
               <COFINSSN>
                  <CST>49</CST>
               </COFINSSN>
            </COFINS>
         </imposto>
      </det>
      <total>
         <vCFeLei12741>9.34</vCFeLei12741>
      </total>
      <pgto>
         <MP>
            <cMP>01</cMP>
            <vMP>57.66</vMP>
         </MP>
      </pgto>
      <infAdic>
         <infCpl>Operador: 1 - Caixa: CAIXA 002 - Venda: 87;OBRIGADO. VOLTE SEMPRE.;Trib aprox R$ : 2,422 Federal e 6,919 Estadual Fonte: IBPT/FECOMERCIO (M2L5P8)</infCpl>
      </infAdic>
   </infCFe>
</CFe> )
19/12/17 13:30:08:109 -   Gravando XML Venda enviado: E:\ValeERP 1.2\Venda\bin\CFe\Enviado\45170289000125\201712\AD20171219133008-500749-env.xml
19/12/17 13:30:09:342 - NumeroSessao: 500749 - Resposta:500749|06000|0000|EMITIDO COM SUCESSO|||PENGZT48aW5mQ0ZlIElkPSJDRmUzNTE3MTI0NTE3MDI4OTAwMDEyNTU5OTAwMDExMjA0MDAwMDYzODA5MTA1NiIgdmVyc2FvPSIwLjA3IiB2ZXJzYW9EYWRvc0VudD0iMC4wNyIgdmVyc2FvU0I9IjAxMDAwMCI+PGlkZT48Y1VGPjM1PC9jVUY+PGNORj44MDkxMDU8L2NORj48bW9kPjU5PC9tb2Q+PG5zZXJpZVNBVD45MDAwMTEyMDQ8L25zZXJpZVNBVD48bkNGZT4wMDAwNjM8L25DRmU+PGRFbWk+MjAxNzEyMTk8L2RFbWk+PGhFbWk+MTMzMDA2PC9oRW1pPjxjRFY+NjwvY0RWPjx0cEFtYj4yPC90cEFtYj48Q05QSj4xNjcxNjExNDAwMDE3MjwvQ05QSj48c2lnbkFDPlNHUi1TQVQgU0lTVEVNQSBERSBHRVNUQU8gRSBSRVRBR1VBUkRBIERPIFNBVDwvc2lnbkFDPjxhc3NpbmF0dXJhUVJDT0RFPk5TVEVBMlY4UWZEejhRTElHUEc3MFEvVUZkaFRtNTZGMTNseEx4UnZwS25pZzlwdjJ3RXFWYmZuOGt0MWZFM2N6dkN3SDFEWFhaNG9oQVpnaDUwaTIvYzBDc1JHNHYyVmNLMEFxbWhIWFVwSG0wcURqRldjckNFcmdsTEFBelJyaGh1c3hLSkZmcGVCRkRobG82eDYvbWd6MW9oZFVMbGRPZEJqYSt1S1VyQTZDQkk4eUJOT0V6UHhrbE56eTlSbys5NXdOQmppRUUwSm1TYUtiMHd4Q2ZSODdkWjRlWE9OQnltM0thQ0puZGdteTJ1Q0toM2F2bkRJTE5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Ty91WVVMM2lXRURqck1sUVV6NllVQXg5UTQvK0ZmM2hSQXJkc1ovUjUybzVDckVnbnZQd0hacXNKZWtwMUtlQ21IRVBoYU5yQXFMTHNHYWFMakhrZ1NUMkxLNkhlVmJ0SktvZWpjUU8xM2NkYVZWb21vMnBpM1k1WExwZERDT3JsY2psWkhFUUxNMzVTdHk5RTltcURyMFZRbXRLNFpmVEc1b3NHMlJGYTNSRy9yT1MwVkZpdUxCQ2ZjMGx3UG5XaUVQcjMycllRWWZ5NlZVMTBCU3BVenpLOXc9PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+PC9TaWduYXR1cmU+PC9DRmU+|20171219133006|CFe35171245170289000125599000112040000638091056|57.66||NSTEA2V8QfDz8QLIGPG70Q/UFdhTm56F13lxLxRvpKnig9pv2wEqVbfn8kt1fE3czvCwH1DXXZ4ohAZgh50i2/c0CsRG4v2VcK0AqmhHXUpHm0qDjFWcrCErglLAAzRrhhusxKJFfpeBFDhlo6x6/mgz1ohdULldOdBja+uKUrA6CBI8yBNOEzPxklNzy9Ro+95wNBjiEE0JmSaKb0wxCfR87dZ4eXONBym3KaCJndgmy2uCKh3avnDILNeT1k+mUpdrJK2ztiBN6DO0KvMWzZj+eL+nWvqFEqat6no7oZRyqk9dJhNXyMjWpbvThL9cb+JWMs+ShLC5ezAdx0QLEw==
19/12/17 13:30:09:353 -   Gravando XML Venda recebido: E:\ValeERP 1.2\Venda\bin\CFe\Vendas\45170289000125\201712\AD35171245170289000125599000112040000638091056.xml
19/12/17 13:32:46:394 - ACBrSAT.Inicializado
19/12/17 13:32:58:536 - NumeroSessao: 329684 - Comando: ConsultarNumeroSessao( 500749 )
19/12/17 13:34:04:631 - NumeroSessao: 329684 - Resposta:R1VBUkRBIERPIFNBVDwvc2lnbkFDPjxhc3NpbmF0dXJhUVJDT0RFPk5TVEVBMlY4UWZEejhRTElHUEc3MFEvVUZkaFRtNTZGMTNseEx4UnZwS25pZzlwdjJ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R1k2SHdiWFo1SFRoVktYKzZSN2tFYUZOZzl6TndzZW5vWGg3OW1jU2ZQTytkeGcxUGZMdkdPRHg4VVJVZkswZG9uRUZYVWc4YWNQcVNBYzRSWFdrOVJKZFNLZC9CeUNVMGdsQ2xmYjF5SEtaVE94VGVqcmdEeWlnV0dMVVVXcHpUVTI5ZWtNNHdMc3JBaFpkLytIY21ZSnk1RjRCMDUwY2ZNM2c3dzMvanIrM3BvazdTM2lGR1MyRmtCanZpOThhMkU1SWV1Ty91WVVMM2lXRURqck1sUVV6NllVQXg5UTQvK0ZmM2hSQXJkc1ovUjUybzVDckVnbnZQd0hacXNKZWtwMUtlQ21IRVBoYU5yQXFMTHNHYWFMakhrZ1NUMkxLNkhlVmJ0SktvZWpjUU8xM2NkYVZWb21vMnBpM1k1WExwZERDT3JsY2psWkhFUUxNMzVTdHk5RTltcURyMFZRbXRLNFpmVEc1b3NHMlJGYTNSRy9yT1MwVkZpdUxCQ2ZjMGx3UG5XaUVQcjMycllRWWZ5NlZVMTBCU3BVenpLOXc9PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+PC9TaWduYXR1cmU+PC9DRmU+|20171219133006|CFe35171245170289000125599000112040000638091056|57.66||NSTEA2V8QfDz8QLIGPG70Q/UFdhTm56F13lxLxRvpKnig9pv2wEqVbfn8kt1fE3czvCwH1DXXZ4ohAZgh50i2/c0CsRG4v2VcK0AqmhHXUpHm0qDjFWcrCErglLAAzRrhhusxKJFfpeBFDhlo6x6/mgz1ohdULldOdBja+uKUrA6CBI8yBNOEzPxklNzy9Ro+95wNBjiEE0JmSaKb0wxCfR87dZ4eXONBym3KaCJndgmy2uCKh3avnDILNeT1k+mUpdrJK2ztiBN6DO0KvMWzZj+eL+nWvqFEqat6no7oZRyqk9dJhNXyMjWpbvThL9cb+JWMs+ShLC5ezAdx0QLEw==
19/12/17 13:34:06:463 -    ERRO: Sessao retornada pelo SAT [0], diferente da enviada [329684].

Pelo log, percebe-se que unica coisa entre o envio e o ConsultaNumeroSessao é a inicialização do componente.

A resposta vem sem o inicio, que converti para visualizar e seria o 500749|06000|0000|EMITIDO COM SUCESSO||| e o inicio do xml.

Alguem faz idéia oque seria isso.

Postado (editado)

Coloquei para sair o log da DarumaSAT mas somente aparece o log quando tem um erro, isso vou dar uma olhada melhor como ativar o log direto do SAT.

Mas mudei para o Emulador da Sefaz e não tive este problema.

Vou entrar em contato com a Daruma, acredito ser algo na dll, estou com a dll 1.4.12.0.

 

Editado por Fabiano Morais
Postado (editado)

Daniel,

O tópico ajudou muito com algumas dúvidas, agora quanto ao log não tem no tópico.

Hoje entrei em contato com o suporte daruma e ensinaram como fazer o log, vou deixar aqui.

Para gerar o log precisa criar um arquivo com nome "sat.ini" na mesma pasta onde encontra-se a dll do sat daruma.

[CONFIGURACAO]
Log=1

* Um detalhe, que enquanto não dei um enter após "Log=1" não gerou o Log da dll, parece q é necessário uma linha abaixo, enfim gerou, kkk

Agora o retorno faltando o inicio eles vão tentar reproduzir o problema, quando tiver retorno coloco para os demais.

Editado por Fabiano Morais
  • Curtir 1
  • 3 semanas depois ...
Postado

Bom 2018 a todos, com o final de ano não coloquei o conclusão aqui.

Junto ao suporte da Daruma chegamos a solução que o problema encontrado seria por estar utilizando o SAT na máquina virual.

Utilizo o VirtualBox e quando realiza o teste de recuperar a sessao após finalizar o programa o inicio do retorno era perdido. Isso não aconteceu em outras duas máquinas fisicas.

Então fica o registro. Obrigado

  • Curtir 1
  • Este tópico foi criado há 2515 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.