# CFDI40151

Source: https://xmlvalid.com/rules/CFDI40151

> El RFC del receptor es de un RFC registrado en el SAT o un RFC genérico nacional y existe el campo ResidenciaFiscal.

- Level: error
- Rule sets: SAT validations of CFDI 4.0 and Pagos 2.0 Matrices of 25 March 2026 and Pagos 2.0 rev. B
- Context: `/cfdi:Comprobante/cfdi:Receptor`
- Test: `$foreign or not(@ResidenciaFiscal)`

In English: ResidenciaFiscal must be left out unless the receiver is a foreigner with the generic RFC XEXX010101000.

Validate a document against these rules: https://xmlvalid.com/validate
