# NFE-682

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

> Rejeição: Proibido referenciar NF de Produtor (refNFP, 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:refNFP)`

> Rejeição: Duplicidade de NF de Produtor referenciada (IE, 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:refNFP`
- Test: `not(../preceding-sibling::nfe:NFref/nfe:refNFP[string(nfe:IE) = string(current()/nfe:IE) 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 producer note is referenced twice; from 5 October 2026 (1 September in homologação) an NF-e may not reference producer notes (refNFP).

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