# NFE-681

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

> Rejeição: Proibido informar NF referenciada (refNF, NF modelo 1 ou 2, a partir de …).

- 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($paperBanned and $refs/nfe:refNF)`

> Rejeição: Duplicidade de NF Modelo 1 referenciada (CNPJ, Modelo, Série e Número) [nOcor: …].

- 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:NFref/nfe:refNF`
- Test: `not(../preceding-sibling::nfe:NFref/nfe:refNF[string(nfe:CNPJ) = string(current()/nfe:CNPJ) and string(nfe:mod) = string(current()/nfe:mod) and string(nfe:serie) = string(current()/nfe:serie) and string(nfe:nNF) = string(current()/nfe:nNF)])`

In English: The same NF modelo 1 or 2 is referenced twice; from 5 October 2026 (1 September in homologação) an NF-e may not reference these paper notes at all.

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