cStat = 225 xMotivo = Rejeicao: Falha no Schema XML do lote de NFe

337 views
Skip to first unread message

Nodirtyenv Servicos

unread,
Aug 23, 2017, 2:53:14 PM8/23/17
to NFePHP
Ola Pessoal!

Comecei a testar o nfephp e ao enviar para o SEFAZ (SC) recebo o erro 225.

bStat = true
versao = 3.10
tpAmb = 1
verAplic = SVRS201706211649
cStat = 225
xMotivo = Rejeicao: Falha no Schema XML do lote de NFe
cUF = 42
dhRecbto = 2017-08-22T21:46:36-03:00
tMed = 
nRec = 
prot = 

Enviei o mesmo arquivo usando o Emissor NFE (Maranhao) para o SEFAZ e a nota foi autorizada... ...Alguma ideia do que estou fazendo errado? Obrigado.

Jonas

Nodirtyenv Servicos

unread,
Aug 25, 2017, 11:38:20 PM8/25/17
to NFePHP
executei o 4.00testaValidaXml.php e o resultado e:
  NFe Valida !

Executei o 4.00testaStatus.php com ($siglaUF = 'SC' e $tpAmb = '1') e o resultado e:

<?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"><soap12:Header><nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2"><cUF>42</cUF><versaoDados>3.10</versaoDados></nfeCabecMsg></soap12:Header><soap12:Body><nfeDadosMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2"><consStatServ xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10"><tpAmb>1</tpAmb><cUF>42</cUF><xServ>STATUS</xServ></consStatServ></nfeDadosMsg></soap12:Body></soap12:Envelope>

CONTENT_TYPE=application/soap+xml; charset=utf-8
REDIRECT_URL=

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Sat, 26 Aug 2017 03:30:57 GMT
Content-Length: 803

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2"><cUF>42</cUF><versaoDados>3.10</versaoDados></nfeCabecMsg></soap:Header><soap:Body><nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2"><retConsStatServ versao="3.10" xmlns="http://www.portalfiscal.inf.br/nfe"><tpAmb>1</tpAmb><verAplic>SVRS201601161035</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMotivo><cUF>42</cUF><dhRecbto>2017-08-26T00:30:57-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result></soap:Body></soap:Envelope>


Array
(
    [bStat] => 1
    [versao] => 3.10
    [tpAmb] => 
    [verAplic] => SVRS201601161035
    [cStat] => 107
    [xMotivo] => Servico em Operacao
    [cUF] => 42
    [dhRecbto] => 2017-08-26T00:30:57-03:00
    [tMed] => 1
    [dhRetorno] => 
    [xObs] => 
)



-------------------------------------------------------------------------

Nodirtyenv Servicos

unread,
Aug 31, 2017, 1:59:53 PM8/31/17
to NFePHP
Validei o arquivo em https://www.sefaz.rs.gov.br/NFE/NFE-VAL.aspx e encontrei os seguintes erros:
Regras de Negócio [Ambiente de Produção] 3 erros de validação
275 - [Simulacao] Rejeicao: Codigo Municipio do Destinatario: difere da UF do Destinatario
773 - [Simulacao] Rejeicao: Operacao Interna e UF de destino difere da UF de origem
805 - [Simulacao] Rejeicao: A SEFAZ do destinatario nao permite Contribuinte Isento de Inscricao Estadual

Fiz as correcoes, revalidei o arquivo 

Resultado da Validação do Schema e de Regras de Negócio (atualizado até a NT2015/003 v1.90 e anteriores):
Parser XML: Nenhum erro encontrado
Tipo de Mensagem: Documento de NF-e
Schema XML: Nenhum erro encontrado

 Assinatura Digital: Válida
Regras de Negócio [Ambiente de Produção]
100 - [Simulacao] Autorizado o uso da NF-e

Mas continue recebendo erro 225 no nfephp:

bStat = true
versao = 3.10
tpAmb = 1
verAplic = SVRS201706211649
cStat = 225
xMotivo = Rejeicao: Falha no Schema XML do lote de NFe
cUF = 42
dhRecbto = 2017-08-31T14:29:41-03:00
tMed = 
nRec = 
prot = 

Alguma ideia do q seja?










On Wednesday, August 23, 2017 at 3:53:14 PM UTC-3, Nodirtyenv Servicos wrote:
Reply all
Reply to author
Forward
0 new messages