CFDI40188

El valor del campo RfcACuentaTerceros, debe ser diferente de los valores de los campos Rfc del Emisor y Receptor.

In English The third party a line is issued for (RfcACuentaTerceros) must not be the issuer or the receiver.

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:Concepto/cfdi:ACuentaTerceros
Test
not(@RfcACuentaTerceros = (/cfdi:Comprobante/cfdi:Emisor/@Rfc, /cfdi:Comprobante/cfdi:Receptor/@Rfc))

Checked with CFDI 4.0