CFDI40173

En caso de utilizar el nodo Impuestos en un concepto, se deben incluir impuestos de traslado y/o retenciones.

In English A line's Impuestos must have a transferred tax (Traslado) or a withholding (Retencion).

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:Impuestos
Test
cfdi:Traslados/cfdi:Traslado or cfdi:Retenciones/cfdi:Retencion

Checked with CFDI 4.0