NFE-370
Rejeição: Processo de emissão pelo Fisco com Tipo de Emissão inválido (tpEmis …).
In English An NF-e issued by the tax authority must have tpEmis 1, 6 or 7.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
nfe:infNFe
not($procEmi = ('1', '2')) or $tpEmis = ('1', '6', '7') or ($emitUF = 'SC' and $tpEmis = '9')
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol