CRP20226

El campo CtaBeneficiario no cumple con el patrón requerido (…, FormaDePagoP …).

In English CtaBeneficiario does not have the form catalogue c_FormaPago gives for the payment form: 10 or 18 digits (a CLABE) for a transfer (03).

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
pago20:Pagos/pago20:Pago
Test
not(@CtaBeneficiario) or empty($ben) or matches(@CtaBeneficiario, concat('^(', $ben, ')$'))

Checked with CFDI 4.0