# VF-1227

Source: https://xmlvalid.com/rules/VF-1227

> Si el campo GeneradoPor es igual a E debe estar relleno el campo NIF del bloque Generador.

- Level: error
- Rule sets: VERI*FACTU checks of the AEAT Validaciones 1.2.2 (8 April 2026)
- Context: `/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAnulacion`
- Test: `not(normalize-space(*:GeneradoPor) = 'E') or *:Generador/*:NIF`

In English: When the issuer generated the cancellation (GeneradoPor E), Generador must be identified by NIF.

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