# NFE-345

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

> Rejeição: Chave de Acesso informada na Exportação Indireta não consta como NF-e referenciada [nItem: …] (a critério da UF).

- Level: warning
- Rule sets: SEFAZ authorisation rules of NF-e 4.00 MOC 7.0 Anexo I, NTs up to 2026.010
- Context: `nfe:infNFe/nfe:det`
- Test: `every $k in $indirect satisfies $k = (for $r in $ide/nfe:NFref/nfe:refNFe return normalize-space($r))`

In English: The access key of an indirect export is not referenced in NFref (a check some states make).

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