XML validade assina mas não gera o -procNFe_xml

28 views
Skip to first unread message

pfla...@gmail.com

unread,
Jan 21, 2021, 8:49:52 AM1/21/21
to UniNFe
Bom Dia!

Continuo com problema , o XML esta assinado normalmente validado e OK
mas não gera o -procNFe_xml

Ja segui os procedimentos descritos, mover o arquivo da pasta erro para a pasta em Processamento, e fazer a consulta do DF_e e nada o XML Protocolado (-procNFe_xml) não é gerado, como podemos resolver ?

Muito Obrigado desde ja pela ajuda
Paulo

OBS.: SEGUE CONTEUDO DO ARQUIVO DE LOG

10:21:28  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\52210110475896000119550210000680071000000018-ped-sit.xml iniciou o processamento (Data criação: 21/01/2021 10:21:31)
10:21:28  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\52210110475896000119550210000680071000000018-ped-sit.xml foi movido para \\192.168.1.200\spd\usr\nota\19\erro\52210110475896000119550210000680071000000018-ped-sit.xml
STACK TRACE:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at NFe.Components.Functions.WriteLog(String msg, Boolean gravarStackTrace, Boolean geraLog, String CNPJEmpresa)
   at NFe.Settings.Auxiliar.WriteLog(String msg, Boolean gravarStackTrace)
   at NFe.Service.TFunctions.MoveArqErro(String Arquivo, String ExtensaoArq)
   at NFe.Service.TFunctions.GravarArqErroServico(String arquivo, String finalArqEnvio, String finalArqErro, Exception exception, ErroPadrao erroPadrao, Boolean moveArqErro, String nomeArqRetorno)
   at NFe.Service.TFunctions.GravarArqErroServico(String arquivo, String finalArqEnvio, String finalArqErro, Exception exception)
   at NFe.Service.TaskNFeConsultaSituacao.Execute()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at NFe.Service.Processar.EnviarArquivo(Int32 emp, String arquivo, Object nfe, String metodo)
   at NFe.Service.Processar.DirecionarArquivo(Int32 emp, Boolean veCertificado, Boolean veConexao, String arquivo, Object taskClass)
   at NFe.Service.Processar.ProcessaArquivo(Int32 emp, String arquivo)
   at NFe.Threadings.ThreadControlEvents.Processar(ThreadItem item)
   at NFe.Threadings.ThreadControlEvents.ThreadItem_OnStarted(ThreadItem item)
   at NFe.Threadings.ThreadItem.Processar(ThreadItem item)
   at NFe.Threadings.ThreadItem.Run()
   at NFe.Threadings.MonitoraPasta.fsw_OnFileChanged(FileInfo fi)
   at NFe.Threadings.FileSystemWatcher.<>c__DisplayClass24_0.<RaiseFileChanged>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
10:21:28  Versão|5.1.0.70
ErrorCode|0000000000
Message|Erro ao invocar o método 'nfeConsultaNF2'.
WSDL: C:\Unimake\UniNFe\NFe\wsdl\producao\GO\PGONfeConsulta.wsdl 
Exception has been thrown by the target of an invocation.
The request failed with HTTP status 403: Forbidden.
StackTrace|   at NFe.Components.WebServiceProxy.Invoke(Object Instance, String methodName, Object[] parameters)
   at NFe.Service.InvocarObjeto.Invocar(WebServiceProxy wsProxy, Object servicoWS, String metodo, Object cabecMsg, Object servicoNFe, String finalArqEnvio, String finalArqRetorno, Boolean gravaRetorno, SecurityProtocolType securityProtocolType)
   at NFe.Service.TaskNFeConsultaSituacao.Execute()
Source|NFe.Components
Type|System.Exception
TargetSite|System.Object Invoke(System.Object, System.String, System.Object[])
HashCode|28866631
STACK TRACE:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at NFe.Components.Functions.WriteLog(String msg, Boolean gravarStackTrace, Boolean geraLog, String CNPJEmpresa)
   at NFe.Settings.Auxiliar.WriteLog(String msg, Boolean gravarStackTrace)
   at NFe.Service.TFunctions.GravarArqErroServico(String arquivo, String finalArqEnvio, String finalArqErro, Exception exception, ErroPadrao erroPadrao, Boolean moveArqErro, String nomeArqRetorno)
   at NFe.Service.TFunctions.GravarArqErroServico(String arquivo, String finalArqEnvio, String finalArqErro, Exception exception)
   at NFe.Service.TaskNFeConsultaSituacao.Execute()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at NFe.Service.Processar.EnviarArquivo(Int32 emp, String arquivo, Object nfe, String metodo)
   at NFe.Service.Processar.DirecionarArquivo(Int32 emp, Boolean veCertificado, Boolean veConexao, String arquivo, Object taskClass)
   at NFe.Service.Processar.ProcessaArquivo(Int32 emp, String arquivo)
   at NFe.Threadings.ThreadControlEvents.Processar(ThreadItem item)
   at NFe.Threadings.ThreadControlEvents.ThreadItem_OnStarted(ThreadItem item)
   at NFe.Threadings.ThreadItem.Processar(ThreadItem item)
   at NFe.Threadings.ThreadItem.Run()
   at NFe.Threadings.MonitoraPasta.fsw_OnFileChanged(FileInfo fi)
   at NFe.Threadings.FileSystemWatcher.<>c__DisplayClass24_0.<RaiseFileChanged>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
10:21:28  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\52210110475896000119550210000680071000000018-ped-sit.xml finalizou o processamento. Itens disponiveis no Semaforo (9). (Data criação: 21/01/2021 10:21:31)
10:21:28  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\52210110475896000119550210000680071000000018-ped-sit.xml foi descarregado da lista de processamento (Data criação: 21/01/2021 10:21:31)
10:25:05  O arquivo \\192.168.1.200\spd\usr\nota\19\enviado\EmProcessamento\52210110475896000119550210000680071000000018-nfe.xml foi movido para \\192.168.1.200\spd\usr\nota\19\erro\52210110475896000119550210000680071000000018-nfe.xml
STACK TRACE:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at NFe.Components.Functions.WriteLog(String msg, Boolean gravarStackTrace, Boolean geraLog, String CNPJEmpresa)
   at NFe.Settings.Auxiliar.WriteLog(String msg, Boolean gravarStackTrace)
   at NFe.Settings.Auxiliar.MoveArqErro(String Arquivo, String ExtensaoArq)
   at NFe.Settings.Auxiliar.MoveArqErro(String Arquivo)
   at NFe.Service.NFeEmProcessamento.Analisar(Int32 emp)
   at NFe.Service.Processar.EmProcessamento()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
10:25:32  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\20210121T102531-cons-cad.xml iniciou o processamento (Data criação: 21/01/2021 10:25:35)
10:25:33  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\20210121T102531-cons-cad.xml finalizou o processamento. Itens disponiveis no Semaforo (9). (Data criação: 21/01/2021 10:25:35)
10:25:33  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\20210121T102531-cons-cad.xml foi descarregado da lista de processamento (Data criação: 21/01/2021 10:25:35)
10:33:17  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\52210110475896000119550210000680071000000018-ped-sit.xml iniciou o processamento (Data criação: 21/01/2021 10:29:41)
10:33:19  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\52210110475896000119550210000680071000000018-ped-sit.xml foi movido para \\192.168.1.200\spd\usr\nota\19\erro\52210110475896000119550210000680071000000018-ped-sit.xml
STACK TRACE:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at NFe.Components.Functions.WriteLog(String msg, Boolean gravarStackTrace, Boolean geraLog, String CNPJEmpresa)
   at NFe.Settings.Auxiliar.WriteLog(String msg, Boolean gravarStackTrace)
   at NFe.Service.TFunctions.MoveArqErro(String Arquivo, String ExtensaoArq)
   at NFe.Service.TFunctions.GravarArqErroServico(String arquivo, String finalArqEnvio, String finalArqErro, Exception exception, ErroPadrao erroPadrao, Boolean moveArqErro, String nomeArqRetorno)
   at NFe.Service.TFunctions.GravarArqErroServico(String arquivo, String finalArqEnvio, String finalArqErro, Exception exception)
   at NFe.Service.TaskNFeConsultaSituacao.Execute()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at NFe.Service.Processar.EnviarArquivo(Int32 emp, String arquivo, Object nfe, String metodo)
   at NFe.Service.Processar.DirecionarArquivo(Int32 emp, Boolean veCertificado, Boolean veConexao, String arquivo, Object taskClass)
   at NFe.Service.Processar.ProcessaArquivo(Int32 emp, String arquivo)
   at NFe.Threadings.ThreadControlEvents.Processar(ThreadItem item)
   at NFe.Threadings.ThreadControlEvents.ThreadItem_OnStarted(ThreadItem item)
   at NFe.Threadings.ThreadItem.Processar(ThreadItem item)
   at NFe.Threadings.ThreadItem.Run()
   at NFe.Threadings.MonitoraPasta.fsw_OnFileChanged(FileInfo fi)
   at NFe.Threadings.FileSystemWatcher.<>c__DisplayClass24_0.<RaiseFileChanged>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
10:33:19  Versão|5.1.0.70
ErrorCode|0000000000
Message|Erro ao invocar o método 'nfeConsultaNF2'.
WSDL: C:\Unimake\UniNFe\NFe\wsdl\producao\GO\PGONfeConsulta.wsdl 
Exception has been thrown by the target of an invocation.
The request failed with HTTP status 403: Forbidden.
StackTrace|   at NFe.Components.WebServiceProxy.Invoke(Object Instance, String methodName, Object[] parameters)
   at NFe.Service.InvocarObjeto.Invocar(WebServiceProxy wsProxy, Object servicoWS, String metodo, Object cabecMsg, Object servicoNFe, String finalArqEnvio, String finalArqRetorno, Boolean gravaRetorno, SecurityProtocolType securityProtocolType)
   at NFe.Service.TaskNFeConsultaSituacao.Execute()
Source|NFe.Components
Type|System.Exception
TargetSite|System.Object Invoke(System.Object, System.String, System.Object[])
HashCode|55825516
STACK TRACE:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at NFe.Components.Functions.WriteLog(String msg, Boolean gravarStackTrace, Boolean geraLog, String CNPJEmpresa)
   at NFe.Settings.Auxiliar.WriteLog(String msg, Boolean gravarStackTrace)
   at NFe.Service.TFunctions.GravarArqErroServico(String arquivo, String finalArqEnvio, String finalArqErro, Exception exception, ErroPadrao erroPadrao, Boolean moveArqErro, String nomeArqRetorno)
   at NFe.Service.TFunctions.GravarArqErroServico(String arquivo, String finalArqEnvio, String finalArqErro, Exception exception)
   at NFe.Service.TaskNFeConsultaSituacao.Execute()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at NFe.Service.Processar.EnviarArquivo(Int32 emp, String arquivo, Object nfe, String metodo)
   at NFe.Service.Processar.DirecionarArquivo(Int32 emp, Boolean veCertificado, Boolean veConexao, String arquivo, Object taskClass)
   at NFe.Service.Processar.ProcessaArquivo(Int32 emp, String arquivo)
   at NFe.Threadings.ThreadControlEvents.Processar(ThreadItem item)
   at NFe.Threadings.ThreadControlEvents.ThreadItem_OnStarted(ThreadItem item)
   at NFe.Threadings.ThreadItem.Processar(ThreadItem item)
   at NFe.Threadings.ThreadItem.Run()
   at NFe.Threadings.MonitoraPasta.fsw_OnFileChanged(FileInfo fi)
   at NFe.Threadings.FileSystemWatcher.<>c__DisplayClass24_0.<RaiseFileChanged>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
10:33:19  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\52210110475896000119550210000680071000000018-ped-sit.xml finalizou o processamento. Itens disponiveis no Semaforo (9). (Data criação: 21/01/2021 10:29:41)
10:33:19  O arquivo \\192.168.1.200\spd\usr\nota\19\envio\Temp\52210110475896000119550210000680071000000018-ped-sit.xml foi descarregado da lista de processamento (Data criação: 21/01/2021 10:29:41)
10:37:05  O arquivo \\192.168.1.200\spd\usr\nota\19\enviado\EmProcessamento\52210110475896000119550210000680071000000018-nfe.xml foi movido para \\192.168.1.200\spd\usr\nota\19\erro\52210110475896000119550210000680071000000018-nfe.xml
STACK TRACE:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at NFe.Components.Functions.WriteLog(String msg, Boolean gravarStackTrace, Boolean geraLog, String CNPJEmpresa)
   at NFe.Settings.Auxiliar.WriteLog(String msg, Boolean gravarStackTrace)
   at NFe.Settings.Auxiliar.MoveArqErro(String Arquivo, String ExtensaoArq)
   at NFe.Settings.Auxiliar.MoveArqErro(String Arquivo)
   at NFe.Service.NFeEmProcessamento.Analisar(Int32 emp)
   at NFe.Service.Processar.EmProcessamento()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Bruno Franco - Unimake

unread,
Jan 21, 2021, 9:34:23 AM1/21/21
to uni...@googlegroups.com
Bom dia, Paulo.

O XML está autorizado na SEFAZ?



Att --

LinkedIn   ,




--
You received this message because you are subscribed to the Google Groups "UniNFe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uninfe+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uninfe/020bc9b2-f839-4ac2-94bd-bfd798a1e5c5n%40googlegroups.com.

Danasa

unread,
Jan 21, 2021, 9:44:48 AM1/21/21
to uni...@googlegroups.com

Message|Erro ao invocar o método 'nfeConsultaNF2'.

WSDL: C:\Unimake\UniNFe\NFe\wsdl\producao\GO\PGONfeConsulta.wsdl 

Exception has been thrown by the target of an invocation.

The request failed with HTTP status 403: Forbidden.

 

 

Não vai processar mesmo!

 

[]’s

Antonio

--

pfla...@gmail.com

unread,
Jan 21, 2021, 10:39:12 AM1/21/21
to UniNFe
Sim, ja tenho varias DF_e autorizadas no SEFAZ mas não consigo o -procNFE

Voce tem a estrutura XML de Consulta?

Obrigado pelo retorno
Paulo

Wandrey Mundin Ferreira

unread,
Jan 21, 2021, 10:56:33 AM1/21/21
to UniNFe
Pela mensagem de erro vc está gerando o XML de consulta com a versão ERRADA, tem que ser versão 4.00, analise.

pfla...@gmail.com

unread,
Jan 21, 2021, 11:52:25 AM1/21/21
to UniNFe
Sim, desculpe a versão realmente estava errada, corrigi o XML de consulta de situação processou normalmente
<?xml version='1.0' encoding='UTF-8'?>
<consSitNFe xmlns='http://www.portalfiscal.inf.br/nfe' versao='4.00'>
<tpAmb>1</tpAmb>
<xServ>CONSULTAR</xServ>
<chNFe>52210110475896000119550210000680071000000018</chNFe>
</consSitNFe>

Agora tenho os  -procNFE
Obrigado a TODOS!
Paulo



Reply all
Reply to author
Forward
0 new messages