0
After upgrading the xsd classes to version 1.3.02, I am trying to stream opening (R1000) and closing (R2099) events from EFD Reinf. I was correcting the errors as they appeared until I stopped in the following:
MS0020 - Failure to access the Power of Attorney System Electronics. Wait a few minutes and try again. (2478979111)
I couldn’t progress from there. The CNPJ in events is the root of the matrix, with eight digits, aligned to the right with zeros, that of manual queries and some forums was what I understood it should be. The certificate is an A1 that is registered in the E-CAC as attorney of the company that transmits the data.
The message seems to be an internal error of theirs, but as I have not seen anyone else talking about this particular error I imagine it is something in the filling. Follow xmls(hashs and signatures omitted for brevity).
Sending:
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/envioLoteEventos/v1_03_02">
<loteEventos>
<evento id="ID1XXXXXXXXXXXXXX2018043013431200002">
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/evtInfoContribuinte/v1_03_02">
<evtInfoContri id="ID1XXXXXXXXXXXXXX2018043013431200000">
<ideEvento>
<tpAmb>2</tpAmb>
<procEmi>1</procEmi>
<verProc>1.0</verProc>
</ideEvento>
<ideContri>
<tpInsc>2</tpInsc>
<nrInsc>XXXXXXXXXXXXXX</nrInsc>
</ideContri>
<infoContri>
<inclusao>
<idePeriodo>
<iniValid>2017-01</iniValid>
</idePeriodo>
<infoCadastro>
<classTrib>99</classTrib>
<indEscrituracao>0</indEscrituracao>
<indDesoneracao>0</indDesoneracao>
<indAcordoIsenMulta>0</indAcordoIsenMulta>
<indSitPJ>0</indSitPJ>
<contato>
<nmCtt>Teste</nmCtt>
<cpfCtt>12345678900</cpfCtt>
<foneFixo>2122223333</foneFixo>
<foneCel>21912345678</foneCel>
<email>[email protected]</email>
</contato>
</infoCadastro>
</inclusao>
</infoContri>
</evtInfoContri>
<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/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#ID1XXXXXXXXXXXXXX2018043013431200000">
<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/2001/04/xmlenc#sha256" />
<DigestValue>...</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>...</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</Reinf>
</evento>
<evento id="ID1XXXXXXXXXXXXXX2018043013431200003">
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/evtFechamento/v1_03_02">
<evtFechaEvPer id="ID1XXXXXXXXXXXXXX2018043013431200001">
<ideEvento>
<perApur>2017-01</perApur>
<tpAmb>2</tpAmb>
<procEmi>1</procEmi>
<verProc>1</verProc>
</ideEvento>
<ideContri>
<tpInsc>2</tpInsc>
<nrInsc>XXXXXXXXXXXXXX</nrInsc>
</ideContri>
<ideRespInf>
<nmResp>Teste</nmResp>
<cpfResp>12345678900</cpfResp>
<telefone>2122223333</telefone>
<email>[email protected]</email>
</ideRespInf>
<infoFech>
<evtServTm>N</evtServTm>
<evtServPr>N</evtServPr>
<evtAssDespRec>N</evtAssDespRec>
<evtAssDespRep>N</evtAssDespRep>
<evtComProd>N</evtComProd>
<evtCPRB>N</evtCPRB>
<evtPgtos>N</evtPgtos>
</infoFech>
</evtFechaEvPer>
<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/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#ID1XXXXXXXXXXXXXX2018043013431200001">
<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/2001/04/xmlenc#sha256" />
<DigestValue>a17VdbLyWAEaq1ABm7pMNLI340ZlQO2b4splHna5xKA=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>...</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</Reinf>
</evento>
</loteEventos>
Answer:
<ReceberLoteEventosResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Body>
<ReceberLoteEventosResult>
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/retornoLoteEventos/v1_03_02">
<retornoLoteEventos id="IDB5853EC5FA5EE568D41CBEC09DD254E0">
<ideTransmissor>
<IdTransmissor>16567897000170</IdTransmissor>
</ideTransmissor>
<status>
<cdStatus>0</cdStatus>
<descRetorno>SUCESSO</descRetorno>
</status>
<retornoEventos>
<evento id="ID1XXXXXXXXXXXXXX2018043013431200002">
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/evtTotal/v1_03_02">
<evtTotal id="ID1525755225">
<ideEvento>
<perApur />
</ideEvento>
<ideContri>
<tpInsc>2</tpInsc>
<nrInsc>XXXXXXXXXXXXXX</nrInsc>
</ideContri>
<ideRecRetorno>
<ideStatus>
<cdRetorno>1</cdRetorno>
<descRetorno>ERRO</descRetorno>
<regOcorrs>
<tpOcorr>1</tpOcorr>
<localErroAviso />
<codResp>MS0020</codResp>
<dscResp>Ocorreu uma falha no acesso ao Sistema de Procuração Eletrônica. Aguarde alguns minutos e tente novamente. (2478979111)</dscResp>
</regOcorrs>
</ideStatus>
</ideRecRetorno>
<infoRecEv>
<dhProcess>2018-04-30T13:43:13.8918393-03:00</dhProcess>
<tpEv>1000</tpEv>
<idEv>ID1XXXXXXXXXXXXXX2018043013431200000</idEv>
<hash>...</hash>
</infoRecEv>
<infoTotal />
</evtTotal>
<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/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#ID1525755225">
<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/2001/04/xmlenc#sha256" />
<DigestValue>...</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>MIIHcDCCBVigAwIBAgICTGkwDQYJKoZIhvcNAQELBQAwgY4xCzAJBgNVBAYTAkJSMRMwEQYDVQQKDApJQ1AtQnJhc2lsMTYwNAYDVQQLDC1TZWNyZXRhcmlhIGRhIFJlY2VpdGEgRmVkZXJhbCBkbyBCcmFzaWwgLSBSRkIxMjAwBgNVBAMMKUF1dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBkbyBTRVJQUk9SRkIgU1NMMB4XDTE3MDkyNzE3MjI1MloXDTE4MDkyNzE3MjI1MlowgboxCzAJBgNVBAYTAkJSMRMwEQYDVQQKDApJQ1AtQnJhc2lsMTYwNAYDVQQLDC1TZWNyZXRhcmlhIGRhIFJlY2VpdGEgRmVkZXJhbCBkbyBCcmFzaWwgLSBSRkIxETAPBgNVBAsMCEFSU0VSUFJPMRowGAYDVQQLDBFSRkIgZS1TZXJ2aWRvciBBMTEvMC0GA1UEAwwmcHJlcHJvZGVmZHJlaW5mLnJlY2VpdGEuZmF6ZW5kYS5nb3YuYnIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDKOtmV56Mu/VbANmjngQ5L8o2INr+IQlXJC7rthuAitaPDS0SpSCxsETtFRik10Ri9bl/DDh1NMtRfGgLBh1RJI232gyoRcmqAG0XTY8ZQOLCd/VMpi5BOmypNnXjaj99evEI6QIvFplVJ/q63jdJX3G+pd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jAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggIBAEA7eq1vHVjPuVdP5K/zlUlJCW7hwhn0kJDCU5ybiPQE9xW48Wx8ypz6sM9axbp9PfNMV1JkBqiDK30nNYF+xOgS+OJsNFZfdAwMgOQeZYemuTZgc6V3/QZbrhehZ447qAlZxvYaHD0fZhJuP8pMOu5gS1JOxQHHbAke/qJEVo1SQhUFttFs9daCeTlEF0xtj8wUvnKF0BF86Cc6+LI+ab0F8CVmph64uWaxLDvJ/h6LftxOcnz59z5+uIOdEQLMQWl0Qgxk+PUvhU/CacwP2B94ouQdfyaCLbSgAFck7nhgwowxX7JA3V4OlQRw7aAjt8Kikh/NjWYTfF/GZeEy90XCW8DbBmg4bSIdnaAds9Y6ne4CjO1fPILoDZRXBAzKrvBYyN6/GOd/u1nlMe3OvEPa8zpc565kxbUZZGFqPk5Tv4+11od7rJ+l/4KTj0ok0hRXnpEWQBsbSQ/YsFSOIOaID2uvyl/Q2C0YRbea+OrtmRgMqMAXWUn9TxMbAw2KgoV/V4/3Gv4QVZ/HRGPLidv9UVxf10n8imNwYrjo1focwIym254uUmyeRYcrCWh+UR0x3dwU5agb2uRNkoJ8aTGwpNNhlFdUDCwIulzi8EQRBIp1nuqEW7mQPOnH+PdKwAxd7ESfehnESjmrw0i55AZJF0rhn7CW8lxi2RXmjj9S</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</Reinf>
</evento>
<evento id="ID1XXXXXXXXXXXXXX2018043013431200003">
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/evtTotal/v1_03_02">
<evtTotal id="ID1526439992">
<ideEvento>
<perApur>2017-01</perApur>
</ideEvento>
<ideContri>
<tpInsc>2</tpInsc>
<nrInsc>XXXXXXXXXXXXXX</nrInsc>
</ideContri>
<ideRecRetorno>
<ideStatus>
<cdRetorno>1</cdRetorno>
<descRetorno>ERRO</descRetorno>
<regOcorrs>
<tpOcorr>1</tpOcorr>
<localErroAviso />
<codResp>MS0020</codResp>
<dscResp>Ocorreu uma falha no acesso ao Sistema de Procuração Eletrônica. Aguarde alguns minutos e tente novamente. (2478979111)</dscResp>
</regOcorrs>
</ideStatus>
</ideRecRetorno>
<infoRecEv>
<dhProcess>2018-04-30T13:43:13.9543704-03:00</dhProcess>
<tpEv>2099</tpEv>
<idEv>ID1XXXXXXXXXXXXXX2018043013431200001</idEv>
<hash>...=</hash>
</infoRecEv>
<infoTotal />
</evtTotal>
<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/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#ID1526439992">
<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/2001/04/xmlenc#sha256" />
<DigestValue>...</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>...</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</Reinf>
</evento>
</retornoEventos>
</retornoLoteEventos>
</Reinf>
</ReceberLoteEventosResult>
</Body>
If anyone has any ideas, I’d really appreciate it!
The message seems to be an internal instability of the connection with the electronic power of attorney system. Can’t you test with another contributor who has the digital certificate to take the test? If the error is only in the use of the power of attorney, send a message on Contact Us: https://idg.receita.fazenda.gov.br/contact/fale-conosco/empresa/sped/efd-reinf-1
– Pedro Gaspar
Anyway, I wouldn’t advise sending the R-1000 and R-2099 together, as there is no control over the processing order, and so the R-2099 can be processed before the R-1000, that is, before there even is the taxpayer. So send the R-1000, get the answer, if it’s positive, send the R-2099.
– Pedro Gaspar
I will try to transmit as another CNPJ and return. The R1000 and the R2099 were together for testing reasons as well, but good to know. Do you know if, within an event there is a guarantee that the information and therefore the errors are processed in order?
– manoftheyear
@Pedrogaspar I tested with another contributor and the mistake was really.
– manoftheyear
Yes, the event is processed all at once. But this other contributor you tested you have the digital certificate or is it power of attorney as well? It has to be one that you have access to the digital certificate directly, without being power of attorney.
– Pedro Gaspar
It is one that I have direct access to the certificate. EDIT: and the error remains the same, even if it does not require power of attorney.
– manoftheyear