# NFE-897

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

> Rejeição: Código numérico em formato inválido (cNF …, nNF …).

- 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($ide/nfe:cNF = ('00000000', '11111111', '22222222', '33333333', '44444444', '55555555', '66666666', '77777777', '88888888', '99999999', '12345678', '23456789', '34567890', '45678901', '56789012', '67890123', '78901234', '89012345', '90123456', '01234567')) and br:dec($ide/nfe:cNF) != br:dec($ide/nfe:nNF)`

In English: cNF is a trivial code (00000000, 11111111, 12345678 and the like) or equals nNF.

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