# CFDI40136

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

> El valor registrado en el campo Año, no es igual al año en curso o no contiene un valor de hasta 5 ejercicios anteriores (…, Fecha …).

- 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:InformacionGlobal`
- Test: `empty($year) or not(@Año castable as xs:integer) or (xs:integer(@Año) le $year and xs:integer(@Año) ge $year - 5)`

In English: The year (Año) of a global invoice must be the current year or one of the five before it. Here it is compared with the year of the CFDI's Fecha.

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