NFePHP 3.10 - XML passes in 3 validators but does NOT transmit to Sefaz

0

I'm using the NfePHP API. The goal is very simple. Receives a TXT generated in the Patterns of the Sefaz Issuer. Transforms into XML and transmits. I validated the XML in these validators, no problem:

But in the API gives the following return error 225:

  

"Rejection: Failed XML schema of Nfe batch"

I've read tons of things on the internet and could not find a solution.

Someone there would help me? Can you know more details of the error besides this message?

    
asked by anonymous 30.09.2016 / 22:09

1 answer

0
Rejection (225): "Failed XML Schema of batch of NFe (Electronic Invoice)" indicates that filling in the NF-e may have been done wrongly, but since this rejection is generic, we have to consider other issues like:

Espaços entre as TAGs do XML;
Quebras de Linhas;
Caracteres especiais;
Nome de TAGs errados;
Versão do XML diferente do esperado pelo Web Service;

In practice, what does this mean?

The bad formation of the XML file will influence the validation of the NF-e schemas and will result in rejection 225.

Example case:

If you have made an NF-e that contains spaces between tags, line breaks or even entered wrong tag names, rejection 225 will be applied.

    
06.01.2017 / 04:37