CFDI40122

El campo Exportacion contiene el valor "02", el CFDI debe contener el complemento para Comercio Exterior.

In English With Exportacion 02 (definitive export, key A1), the CFDI must carry the Comercio Exterior complement.

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
/cfdi:Comprobante
Test
not(@Exportacion = '02') or $cce

Checked with CFDI 4.0