# NFE-253

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

> Rejeição: Digito Verificador da chave de acesso composta inválida (cDV …, calculado …).

- 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(matches($key43, '^[0-9]{6}[0-9A-Z]{12}[0-9]{25}$')) or br:mod11($key43) = br:dec($ide/nfe:cDV)`

In English: cDV is not the modulo 11 check digit of the 43 digits of the access key (weights 2 to 9 from the right, 0 when the result is 10 or 11).

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