Ir para conteúdo
  • Cadastre-se

dev botao

Diferença no retorno da lib ACBrMDFe32 gerando problema para ler retorno na mudança para o modo sincrono


Ver Solução Respondido por Diego Foliene,
  • Este tópico foi criado há 220 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

  • Membros Pro
Postado (editado)

Ola,

Estou fazendo alteração para emitir o MDFe em modo síncrono e me deparei com um problema no retorno da ultima versão da DLL(0.2.1.246) que impede de ler os dados

Em modo Assincrono  o retorno no padrão

[Envio]
CStat=103
CUF=23
DhRecbto=08/04/2024 22:33:49
Msg=Arquivo recebido com sucesso
NProt=
NRec=239000012262201
TMed=1
TpAmb=2
VerAplic=RS20230927085755
Versao=RS20230927085755
XMotivo=Arquivo recebido com sucesso
Xml=

[Retorno]
CStat=104
CUF=23
ChaveDFe=23240408474328000151580010000000241000501187
DhRecbto=
Msg=Manifesto(s) nÆo confirmado(s):24->204-Rejeicao: Duplicidade de MDF-e [nProt:923240000002079][dhAut:2024-04-08T22:19:32-03:00]
Protocolo=
VerAplic=RS20240314095818
Versao=3.00
XMotivo=Arquivo processado
cMsg=0
nRec=239000012262201
tpAmb=2
xMsg=

[MDFe24]
Id=MDFe08042024223349766
XML=<protMDFe versao="3.00"><infProt Id="MDFe08042024223349766"><tpAmb>2</tpAmb><verAplic>RS20240314095818</verAplic><chMDFe>23240408474328000151580010000000241000501187</chMDFe><dhRecbto>2024-04-08T22:33:49-03:00</dhRecbto><cStat>204</cStat><xMotivo>Rejeicao: Duplicidade de MDF-e [nProt:923240000002079][dhAut:2024-04-08T22:19:32-03:00]</xMotivo></infProt></protMDFe>
cStat=204
chDFe=23240408474328000151580010000000241000501187
dhRecbto=08/04/2024 22:33:49
digVal=
nProt=
tpAmb=2
verAplic=RS20240314095818
xMotivo=Rejeicao: Duplicidade de MDF-e [nProt:923240000002079][dhAut:2024-04-08T22:19:32-03:00]

Vejam que a chave vem [MDFe24] que é numero do manifesto

Modo síncrono

[Envio]
CStat=100
CUF=23
DhRecbto=08/04/2024 22:19:32
Msg=Autorizado o uso do MDF-e
NProt=923240000002079
NRec=
TMed=0
TpAmb=2
VerAplic=RS20230927085816
Versao=RS20230927085816
XMotivo=Autorizado o uso do MDF-e
Xml=<?xml version="1.0" encoding="UTF-8"?><mdfeProc versao="3.00" xmlns="http://www.portalfiscal.inf.br/mdfe"><MDFe xmlns="http://www.portalfiscal.inf.br/mdfe"><infMDFe versao="3.00" Id="MDFe23240408474328000151580010000000241000501187"><ide><cUF>23</cUF><tpAmb>2</tpAmb><tpEmit>2</tpEmit><mod>58</mod><serie>1</serie><nMDF>24</nMDF><cMDF>00050118</cMDF><cDV>7</cDV><modal>1</modal><dhEmi>2024-04-08T22:19:31-03:00</dhEmi><tpEmis>1</tpEmis><procEmi>0</procEmi><verProc>7.20</verProc><UFIni>CE</UFIni><UFFim>CE</UFFim><infMunCarrega><cMunCarrega>2312908</cMunCarrega><xMunCarrega>SOBRAL</xMunCarrega></infMunCarrega></ide><emit><CNPJ>08474328000151</CNPJ><IE>063795035</IE><xNome>M C PASSOS ARAGAO ME</xNome><xFant>Helpnet Informatica(nfe)</xFant><enderEmit><xLgr>R CEL. ESTANISLAU FROTA</xLgr><nro>408</nro><xBairro>CENTRO</xBairro><cMun>2312908</cMun><xMun>SOBRAL</xMun><CEP>62010560</CEP><UF>CE</UF><fone>88992210300</fone><email>[email protected]</email></enderEmit></emit><infModal versaoModal="3.00"><rodo><veicTracao><cInt>1</cInt><placa>RIO2A18</placa><tara>556</tara><condutor><xNome>JOSE PAULO</xNome><CPF>48692204315</CPF></condutor><tpRod>01</tpRod><tpCar>00</tpCar><UF>CE</UF></veicTracao></rodo></infModal><infDoc><infMunDescarga><cMunDescarga>2313906</cMunDescarga><xMunDescarga>URUOCA</xMunDescarga><infNFe><chNFe>23240308474328000151550000000132481001324890</chNFe></infNFe></infMunDescarga></infDoc><tot><qNFe>1</qNFe><vCarga>5.99</vCarga><cUnid>01</cUnid><qCarga>13.0000</qCarga></tot></infMDFe><infMDFeSupl><qrCodMDFe><![CDATA[https://dfe-portal.svrs.rs.gov.br/mdfe/qrCode?chMDFe=23240408474328000151580010000000241000501187&tpAmb=2]]></qrCodMDFe></infMDFeSupl><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI="#MDFe23240408474328000151580010000000241000501187"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>S+ylKJFVDCKQ2b6tTbEYXo4lOCQ=</DigestValue></Reference></SignedInfo><SignatureValue>g+pgFqkwdAamU9h1Ui/+yEMU31NjGgZSVeGTkYd2wCES1GIBM6o84fbxUTfBSd5q2hmlud/saEgaIADPCpalMdjzv1ibyUTZH5ks9Phj1LveYYNKVJW9wZoq4prTiPcsY/m2gz0XXagUck7gwa1pCqxkgIpc4o2l1mAEE+HD0o6bRBtd1St/v6eEzaKSp+l+wBHEDCi5f5oDlxwrugrvusSi9Mbg9n8FtM/xxDUljZFtxRinFi6WdcIQ3w9uHmIq6srSyER2DRhmyqo9gXNAv5aZz3MQtg91JiBz6/6o/zJ3YcsBpkPiy3HbniNI84EXN6CoRRBwrPQnGgoKbXvNuw==</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHPDCCBSSgAwIBAgIIGzEjBxBq1OgwDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxFTATBgNVBAsTDEFDIFNPTFVUSSB2NTEeMBwGA1UEAxMVQUMgU09MVVRJIE11bHRpcGxhIHY1MB4XDTIzMDcxMTE0NDEwMFoXDTI0MDcxMDE0NDEwMFowgdsx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EDmhR0ZzsZ5DQp17OlAci5/SWLzCxyl8k+s7a2RwSRVeqavV78mK7c2QgJvnaMo4ttH7NrJ2Jk8iQHnQD8yRnX2hMQ1sywQwyfpgcBkUvlwkAfcEA6G6yKg3YvGAMyEDexxKGee8hlT4GWo=</X509Certificate></X509Data></KeyInfo></Signature></MDFe><protMDFe versao="3.00" xmlns="http://www.portalfiscal.inf.br/mdfe"><infProt Id="MDFe923240000002079"><tpAmb>2</tpAmb><verAplic>RS20240403151059</verAplic><chMDFe>23240408474328000151580010000000241000501187</chMDFe><dhRecbto>2024-04-08T22:19:32-03:00</dhRecbto><nProt>923240000002079</nProt><digVal>S+ylKJFVDCKQ2b6tTbEYXo4lOCQ=</digVal><cStat>100</cStat><xMotivo>Autorizado o uso do MDF-e</xMotivo></infProt></protMDFe></mdfeProc>

[MDFe23240408474328000151580010000000241000501187]
Id=ID923240000002079
XML=
cStat=100
chDFe=23240408474328000151580010000000241000501187
dhRecbto=08/04/2024 22:19:32
digVal=S+ylKJFVDCKQ2b6tTbEYXo4lOCQ=
nProt=923240000002079
tpAmb=2
verAplic=RS20230927085816
xMotivo=Autorizado o uso do MDF-e

Vem [MDFe23240408474328000151580010000000241000501187] e assim não temos como pegar o retorno já que não sabemos ainda qual e chave.

Editado por lucimauro
Erro na escrita
  • lucimauro changed the title to Diferença no retorno da lib ACBrMDFe32 gerando problema para ler retorno na mudança para o modo sincrono
  • Consultores
Postado
Em 08/04/2024 at 22:58, lucimauro disse:

Ola,

Estou fazendo alteração para emitir o MDFe em modo síncrono e me deparei com um problema no retorno da ultima versão da DLL(0.2.1.246) que impede de ler os dados

Em modo Assincrono  o retorno no padrão

[Envio]
CStat=103
CUF=23
DhRecbto=08/04/2024 22:33:49
Msg=Arquivo recebido com sucesso
NProt=
NRec=239000012262201
TMed=1
TpAmb=2
VerAplic=RS20230927085755
Versao=RS20230927085755
XMotivo=Arquivo recebido com sucesso
Xml=

[Retorno]
CStat=104
CUF=23
ChaveDFe=23240408474328000151580010000000241000501187
DhRecbto=
Msg=Manifesto(s) nÆo confirmado(s):24->204-Rejeicao: Duplicidade de MDF-e [nProt:923240000002079][dhAut:2024-04-08T22:19:32-03:00]
Protocolo=
VerAplic=RS20240314095818
Versao=3.00
XMotivo=Arquivo processado
cMsg=0
nRec=239000012262201
tpAmb=2
xMsg=

[MDFe24]
Id=MDFe08042024223349766
XML=<protMDFe versao="3.00"><infProt Id="MDFe08042024223349766"><tpAmb>2</tpAmb><verAplic>RS20240314095818</verAplic><chMDFe>23240408474328000151580010000000241000501187</chMDFe><dhRecbto>2024-04-08T22:33:49-03:00</dhRecbto><cStat>204</cStat><xMotivo>Rejeicao: Duplicidade de MDF-e [nProt:923240000002079][dhAut:2024-04-08T22:19:32-03:00]</xMotivo></infProt></protMDFe>
cStat=204
chDFe=23240408474328000151580010000000241000501187
dhRecbto=08/04/2024 22:33:49
digVal=
nProt=
tpAmb=2
verAplic=RS20240314095818
xMotivo=Rejeicao: Duplicidade de MDF-e [nProt:923240000002079][dhAut:2024-04-08T22:19:32-03:00]

Vejam que a chave vem [MDFe24] que é numero do manifesto

Modo síncrono

[Envio]
CStat=100
CUF=23
DhRecbto=08/04/2024 22:19:32
Msg=Autorizado o uso do MDF-e
NProt=923240000002079
NRec=
TMed=0
TpAmb=2
VerAplic=RS20230927085816
Versao=RS20230927085816
XMotivo=Autorizado o uso do MDF-e
Xml=<?xml version="1.0" encoding="UTF-8"?><mdfeProc versao="3.00" xmlns="http://www.portalfiscal.inf.br/mdfe"><MDFe xmlns="http://www.portalfiscal.inf.br/mdfe"><infMDFe versao="3.00" Id="MDFe23240408474328000151580010000000241000501187"><ide><cUF>23</cUF><tpAmb>2</tpAmb><tpEmit>2</tpEmit><mod>58</mod><serie>1</serie><nMDF>24</nMDF><cMDF>00050118</cMDF><cDV>7</cDV><modal>1</modal><dhEmi>2024-04-08T22:19:31-03:00</dhEmi><tpEmis>1</tpEmis><procEmi>0</procEmi><verProc>7.20</verProc><UFIni>CE</UFIni><UFFim>CE</UFFim><infMunCarrega><cMunCarrega>2312908</cMunCarrega><xMunCarrega>SOBRAL</xMunCarrega></infMunCarrega></ide><emit><CNPJ>08474328000151</CNPJ><IE>063795035</IE><xNome>M C PASSOS ARAGAO ME</xNome><xFant>Helpnet Informatica(nfe)</xFant><enderEmit><xLgr>R CEL. ESTANISLAU FROTA</xLgr><nro>408</nro><xBairro>CENTRO</xBairro><cMun>2312908</cMun><xMun>SOBRAL</xMun><CEP>62010560</CEP><UF>CE</UF><fone>88992210300</fone><email>[email protected]</email></enderEmit></emit><infModal versaoModal="3.00"><rodo><veicTracao><cInt>1</cInt><placa>RIO2A18</placa><tara>556</tara><condutor><xNome>JOSE PAULO</xNome><CPF>48692204315</CPF></condutor><tpRod>01</tpRod><tpCar>00</tpCar><UF>CE</UF></veicTracao></rodo></infModal><infDoc><infMunDescarga><cMunDescarga>2313906</cMunDescarga><xMunDescarga>URUOCA</xMunDescarga><infNFe><chNFe>23240308474328000151550000000132481001324890</chNFe></infNFe></infMunDescarga></infDoc><tot><qNFe>1</qNFe><vCarga>5.99</vCarga><cUnid>01</cUnid><qCarga>13.0000</qCarga></tot></infMDFe><infMDFeSupl><qrCodMDFe><![CDATA[https://dfe-portal.svrs.rs.gov.br/mdfe/qrCode?chMDFe=23240408474328000151580010000000241000501187&tpAmb=2]]></qrCodMDFe></infMDFeSupl><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI="#MDFe23240408474328000151580010000000241000501187"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>S+ylKJFVDCKQ2b6tTbEYXo4lOCQ=</D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MTLUJsJSIn2GmMA4GA1UdDwEB/wQEAwIF4DANBgkqhkiG9w0BAQsFAAOCAgEAQCliwJOX9H3xnyaRDdhEDZ/p6K4o5tyr4eDIlCwZ5DAx8NPkASR06pvdIMsgtwUEt5HC7ZB2kPF7JLtsZz7bBl4fpskRFr0KlXB8jPbWt18ToDBGDwMYWfayBlYDek8BFt6jJtvgwyxIglob34iwB+bUpxj7vQgjsiTY8imLDdmlJjHD4EY1Y6We/XPA1mSFXCCcqw4MWhM+661Jo2BYGdwzi+CoxrJOK1zZQx3X7U5tuo9DA1wYtPMFsWAKnoikqGUbWemU2S0zzvVD1XVVskpUwflW2BPuC8Ebjt2sVNOD0DQ1CQuKbeyaBD1Kv5GdWaGj6A0LJNpR5IQOFSNRnIJVf2QcbcrC9kQcNuOMflU3uN9ugsN5F6qGlvsu9gw+evgcrfzMbC3bz0bVtcx21BSpB5/fyaIin6KWJPocA1Y6cezIQ7oOGEjSOO4vJcRUNwn9lt4RHQojlaU2bKv4HKjwnaXaGh0cf9th8yZ2hE1zJ8kxfFgEs0Y0YzTpJd5WVUZLfKqfEEE7OQBdbzAQPjsHpOtrEDmhR0ZzsZ5DQp17OlAci5/SWLzCxyl8k+s7a2RwSRVeqavV78mK7c2QgJvnaMo4ttH7NrJ2Jk8iQHnQD8yRnX2hMQ1sywQwyfpgcBkUvlwkAfcEA6G6yKg3YvGAMyEDexxKGee8hlT4GWo=</X509Certificate></X509Data></KeyInfo></Signature></MDFe><protMDFe versao="3.00" xmlns="http://www.portalfiscal.inf.br/mdfe"><infProt Id="MDFe923240000002079"><tpAmb>2</tpAmb><verAplic>RS20240403151059</verAplic><chMDFe>23240408474328000151580010000000241000501187</chMDFe><dhRecbto>2024-04-08T22:19:32-03:00</dhRecbto><nProt>923240000002079</nProt><digVal>S+ylKJFVDCKQ2b6tTbEYXo4lOCQ=</digVal><cStat>100</cStat><xMotivo>Autorizado o uso do MDF-e</xMotivo></infProt></protMDFe></mdfeProc>

[MDFe23240408474328000151580010000000241000501187]
Id=ID923240000002079
XML=
cStat=100
chDFe=23240408474328000151580010000000241000501187
dhRecbto=08/04/2024 22:19:32
digVal=S+ylKJFVDCKQ2b6tTbEYXo4lOCQ=
nProt=923240000002079
tpAmb=2
verAplic=RS20230927085816
xMotivo=Autorizado o uso do MDF-e

Vem [MDFe23240408474328000151580010000000241000501187] e assim não temos como pegar o retorno já que não sabemos ainda qual e chave.

Qual modelo de compilação você esta utilizando ACBrLibMDFe ? 
x86 ou x64, nas versões SingleThread ou MultiThread.. Cdecl ou Stdcall.. 

  • Consultores
  • Solution
Postado

Boa tarde!

Foi feito uma reunião da equipe de consultores e após diversas considerações, chegou-se a conclusão que uma alteração na estrutura de resposta da lib poderia causar problemas inesperados a outros membros que já utilizam a Lib em envio síncrono desta forma.

Dado a ausência de outros relatos semelhantes, a recomendação é que seja utilizado o método MDFe_GerarChave para obter a informação da chave de acesso e realizar a leitura da seção [MDFe+Chave de Acesso] na resposta da Lib.

 

Consultor SAC ACBr

Diego Folieni
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.  Discord

Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil


Participe de nosso canal no Discord e fique ainda mais próximo da Comunidade !!

  • Este tópico foi criado há 220 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.
Visitante
Este tópico está agora fechado para novas respostas
×
×
  • 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.