# NFE-717

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

> Rejeição: NFC-e ou NF-e com DANFE Simplificado Tipo 2 em operação não permitida (indPres …).

- 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: `not($simple) or $indPres = ('1', '4', '5')`

In English: An NF-e with the DANFE Simplificado Tipo 2 needs indPres 1, 4 or 5.

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