# NFE-564

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

> Rejeição: Total do Produto / Serviço difere do somatório dos itens (vProd …, itens com indTot 1 …).

- 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:total`
- Test: `br:dec($t/nfe:vProd) = br:sum($goods/nfe:prod/nfe:vProd)`

In English: The products total (ICMSTot/vProd) is not the sum of vProd of the items that count in the total (indTot 1), services under ISSQN apart.

## Why it fails

- An item with indTot 0 was added, or one with indTot 1 left out.
- Services taxed by ISSQN were added here; they belong in ISSQNtot/vServ.

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