# NFE-557

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

> Rejeição: A Justificativa de entrada em contingência deve ser informada (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`
- Test: `not($tpEmis = ('2', '4', '5', '9')) or ($ide/nfe:dhCont and $ide/nfe:xJust)`

In English: An NF-e issued in contingency (tpEmis 2, 4, 5 or 9) needs dhCont and xJust.

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