NFE-1001

Rejeição: NF-e com finalidade de débito ou crédito somente para IBS/CBS (informado …).

In English A credit or debit note (finNFe 5 or 6), or the payment of a government purchase (tpOperGov 2), carries ICMS, ISSQN, IPI, II, PIS, COFINS or returned taxes: these notes are for the IBS and CBS only.

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
Test
not($fin = ('5', '6') or $gov = '2') or $exempt or empty($others[not($debit = '06' and year-from-date($emitted) = 2026 and local-name() = ('PIS', 'PISST', 'COFINS', 'COFINSST'))])

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