# NFE-271

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

> Rejeição: Código Município do Fato Gerador: difere da UF do emitente (cMunFG …, cUF …).

- 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`
- Test: `substring($ide/nfe:cMunFG, 1, 2) = string($ide/nfe:cUF)`

In English: The municipality of the taxable event (cMunFG) does not start with the issuer's state code (cUF).

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