# NFE-1213

Source: https://xmlvalid.com/rules/NFE-1213

> Rejeição: DFe referenciado em operação com ente governamental com tipo de emissão inválido [nOcor: …] (tpEmis …).

- Level: error
- Rule sets: SEFAZ authorisation rules of NF-e 4.00 MOC 7.0 Anexo I, NTs up to 2026.010
- Context: `nfe:infNFe/nfe:ide/nfe:gCompraGov/nfe:refDFeAnt`
- Test: `substring($k, 3, 4) le '1104' or substring($k, 35, 1) = ('1', '2', '3', '4', '5', '6', '7', '9')`

In English: A previous document of a government purchase has a type of emission other than 1 to 7 or 9.

Validate a document against these rules: https://xmlvalid.com/validate
