CFDI40114

El campo TipoCambio no tiene el valor "1" y la moneda indicada es MXN.

In English With Moneda MXN, TipoCambio may be left out; when given it must be 1.

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(@Moneda = 'MXN') or not(@TipoCambio) or mx:dec(@TipoCambio) = 1

Checked with CFDI 4.0