NFE-695

Rejeição: Informado indevidamente o grupo de ICMS para a UF de destino [nItem: …].

In English ICMSUFDest is only for interstate sales of goods to non-contributor final consumers (petroleum fuels and deliveries in another state excepted).

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
nfe:infNFe/nfe:det
Test
not($dif) or $fuel or (../nfe:entrega/nfe:UF and ../nfe:entrega/nfe:UF != $emitUF) or ($idDest = '2' and $ide/nfe:indFinal = '1' and $indIEDest = '9' and not(nfe:imposto/nfe:ISSQN))

Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol