# NFE-1042

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

> Rejeição: Informado referenciamento a nível de item em Nota de crédito (DFeReferenciado).

- 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($fin = '5' and $itemRefs) or $credit = '06'`

In English: A credit note references documents per item (DFeReferenciado), which only a return with partial refusal (type 06) may.

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