# VF-1246

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

> El valor del campo ClaveRegimen es incorrecto (… para el Impuesto …).

- Level: error
- Rule sets: VERI*FACTU checks of the AEAT Validaciones 1.2.2 (8 April 2026)
- Context: `/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Desglose/*:DetalleDesglose`
- Test: `$key = '' or ($tax = '01' and $key = ('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '14', '15', '17', '18', '19', '20')) or ($tax = '02' and $key = ('01', '08', '11', '18', '19', '20')) or ($tax = '03' and $key = ('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '14', '15', '17', '18', '19', '20', '21')) or not($tax = ('01', '02', '03'))`

In English: ClaveRegimen is not in the list for the line's tax: list L8A for VAT, L8B (plus 20 and 21) for IGIC, and 01, 08, 11, 18, 19 or 20 for IPSI.

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