Verifactu: who it applies to and from when
Verifactu errors: what each code means and what to do
When your invoicing software sends records to the Spanish Tax Agency, the response may carry an error code. Here is each one, with the official text, what it means in plain words and what to do.
AIM PAPYR does not send records: your invoicing software does. This page explains what the Agency replies to it. If you have the response file, upload it to the chain-checking tool and it explains each code in that response. Check a Verifactu chain or a response from the Agency
Find a code
How to read a response
The Agency groups its codes in three. The first thing is to know which group yours is in:
- Whole submission rejected. The Agency rejects the whole submission: no invoice in that submission is recorded.
- Invoice record rejected. The Agency rejects this record; the others in the submission carry on. If the error is in the header, the whole request is rejected.
- Accepted with errors, to be corrected. The Agency accepts the record, but it stays with an error and must be corrected.
If the submission answers a request from the Agency, do not fix business errors: the records are sent as they were kept when generated.
Whole submission rejected (44)
The Agency rejects the whole submission: no invoice in that submission is recorded.
The file sent does not have the form the Agency requires
What it means: The message the software sent does not follow the official schema (a mandatory field is missing, the encoding is not UTF-8, it carries more records than allowed or a date in another format), so the Agency did not read it.
What to do: Whoever maintains your invoicing software fixes it: give them the code and the official text. The software then sends the whole batch again.
Codes (official text):
- 4102El XML no cumple el esquema. Falta informar campo obligatorio.
- 4103Se ha producido un error inesperado al parsear el XML.
- 4106El formato de fecha es incorrecto.
- 4113El XML no cumple con el esquema: se ha superado el límite permitido de registros para el bloque.
- 4114El XML no cumple con el esquema: se ha superado el límite máximo permitido de facturas a registrar.
- 4118Error técnico: la dirección no se corresponde con el fichero de entrada.
- 4119Error al informar caracteres cuya codificación no es UTF-8.
- 4135Esta URL no puede ser utilizada mediante GET.
- 4136No se ha enviado el nodo RegistroAlta o el anterior al nodo RegistroAlta no es correcto.
- 4137No se ha enviado el nodo RegistroAnulacion o el anterior al nodo RegistroAnulacion no es correcto.
- 4138Petición vacía en el XML o encoding incorrecto.
The issuer's tax ID or name is not in the register as written
What it means: The tax ID or name of the party obliged to issue the invoices, or of their representative, is misspelt or does not match what the Spanish Tax Agency's register holds.
What to do: Check in your software the tax ID and company name exactly as they appear in the register, with no spaces or hyphens, and let the software send again.
Codes (official text):
- 4104Error en la cabecera: el valor del campo NIF del bloque ObligadoEmision no está identificado.
- 4105Error en la cabecera: el valor del campo NIF del bloque Representante no está identificado.
- 4107El NIF no está identificado en el censo de la AEAT.
- 4109El formato del NIF es incorrecto.
- 4115El valor del campo NIF del bloque ObligadoEmision es incorrecto.
- 4116Error en la cabecera: el campo NIF del bloque ObligadoEmision tiene un formato incorrecto.
- 4117Error en la cabecera: el campo NIF del bloque Representante tiene un formato incorrecto.
- 4123Error en la cabecera: el valor del campo NIF del bloque Representante no está identificado en el censo de la AEAT.
- 4124Error en la cabecera: el valor del campo Nombre del bloque Representante no está identificado en el censo de la AEAT.
The certificate does not belong to someone allowed to send
What it means: The certificate used to send does not belong to the invoice issuer or to someone authorised by them (social collaborator, attorney or successor).
What to do: Send with the company's certificate, or register the power of attorney for that procedure on the Spanish Tax Agency's e-office.
Codes (official text):
- 4112El titular del certificado debe ser Obligado Emisión, Colaborador Social, Apoderado o Sucesor.
The header does not match the type of submission
What it means: The header carries data that does not fit its mode: a voluntary Verifactu submission or the reply to a request from the Agency.
What to do: Check which mode your software works in and whether the submission answers a request. The software provider adjusts the header.
Codes (official text):
- 4120Error en la cabecera: el valor del campo FechaFinVeriFactu es incorrecto, debe ser 31-12-20XX, donde XX corresponde con el año actual o el anterior.
- 4121Error en la cabecera: el valor del campo Incidencia es incorrecto.
- 4122Error en la cabecera: el valor del campo RefRequerimiento es incorrecto.
- 4125Error en la cabecera: Si el envío es por requerimiento el campo RefRequerimiento es obligatorio.
- 4126Error en la cabecera: el campo RefRequerimiento solo debe informarse en sistemas en remisiones al endpoint del servicio a usar para la contestación a requerimientos de registros de facturación.
- 4127Error en la cabecera: la remisión voluntaria solo debe informarse en sistemas VERIFACTU.
- 4129Error en la cabecera: el campo FinRequerimiento es obligatorio.
- 4130Error en la cabecera: el campo FinRequerimiento solo debe informarse en sistemas No VERIFACTU.
- 4131Error en la cabecera: el valor del campo FinRequerimiento es incorrecto.
- 4133Error en la cabecera: el valor del campo RefRequerimiento no es alfanumérico.
A technical fault or a service that is not available
What it means: It is a technical error in the Spanish Tax Agency's systems, or a service not available at that time or at that address. It says nothing about your invoices.
What to do: Wait a while and let the software try again. If it keeps happening, the software provider should check the service address.
Codes (official text):
- 3500Error técnico de base de datos: error en la integridad de la información.
- 3501Error técnico de base de datos.
- 4108Error técnico al obtener el certificado.
- 4110Error técnico al comprobar los apoderamientos.
- 4111Error técnico al crear el trámite.
- 4128Error técnico en la recuperación del valor del Gestor de Tablas.
- 4134Servicio no activo.
- 4139Servicio no habilitado en producción.
Access to the system is suspended
What it means: The Spanish Tax Agency has temporarily suspended access to the system for any request.
What to do: Write to the mailbox given in the official text. Until it is resolved, submissions are not accepted.
Codes (official text):
- 4141Le informamos que su acceso al sistema VERIFACTU ha sido suspendido temporalmente para realizar cualquier solicitud. Para resolver este inconveniente, le solicitamos que se ponga en contacto con nuestro equipo de soporte a través del buzón de correo electrónico verifactu@correo.aeat.es, donde le atenderán con la mayor brevedad posible.
The record clashes with what the Agency already holds
What it means: The Agency already has that record, has already cancelled it, cannot find it, it belongs to another holder, the submitter lacks permission to update it, or it was registered through a form.
What to do: Before sending again, check what the Agency holds for that invoice. If it is already recorded as correct, there is no need to send it again.
Codes (official text):
- 3502La factura consultada para el suministro de pagos/cobros/inmuebles no existe.
- 3503La factura especificada no pertenece al titular registrado en el sistema.
An error in a query, not in a submission
What it means: It is an error in a query to the Agency (its filters, period, flags or who is making it), not in sending an invoice.
What to do: Check the query filters in your software: period, from and to dates, and who is querying. Whoever queries must be the recipient, an attorney or a successor, authorised for the procedures needed.
Codes (official text):
- 4132El titular del certificado debe ser el destinatario que realiza la consulta, un Apoderado o Sucesor
- 4140No puede acceder a la consulta de facturas al no estar apoderado en los trámites necesarios.
Invoice record rejected (193)
The Agency rejects this record; the others in the submission carry on. If the error is in the header, the whole request is rejected.
A technical fault or a service that is not available
What it means: It is a technical error in the Spanish Tax Agency's systems, or a service not available at that time or at that address. It says nothing about your invoices.
What to do: Wait a while and let the software try again. If it keeps happening, the software provider should check the service address.
Codes (official text):
- 1129Error técnico al obtener el acuerdo de facturación.
- 1241Error técnico al obtener el SistemaInformatico.
- 1243Error técnico al obtener el cálculo de la fecha del huso horario.
- 1256Error técnico al obtener el límite de la fecha de expedición.
- 1288Error técnico en la validación de la fecha de expedición/operación.
The record clashes with what the Agency already holds
What it means: The Agency already has that record, has already cancelled it, cannot find it, it belongs to another holder, the submitter lacks permission to update it, or it was registered through a form.
What to do: Before sending again, check what the Agency holds for that invoice. If it is already recorded as correct, there is no need to send it again.
Codes (official text):
- 3000Registro de facturación duplicado.
- 3001El registro de facturación ya ha sido dado de baja.
- 3002No existe el registro de facturación.
- 3003El presentador no tiene los permisos necesarios para actualizar este registro de facturación.
- 3004No es posible modificar la factura ya que ha sido dada de alta vía formulario.
The invoice number, date or type
What it means: The serial number, issue date or invoice type is empty, misspelt or outside what is allowed: for example, a future date, one more than twenty years old or one before 28 October 2024.
What to do: Correct that field in your invoicing software and send that record again.
Codes (official text):
- 1100Valor o tipo incorrecto del campo.
- 1104El valor del campo NumSerieFactura es incorrecto.
- 1105El valor del campo FechaExpedicionFactura es incorrecto.
- 1106El valor del campo TipoFactura no está incluido en la lista de valores permitidos.
- 1112El campo FechaExpedicionFactura es superior a la fecha actual.
- 1120Valor de campo IDEmisorFactura del bloque IDFactura con tipo incorrecto.
- 1130El campo NumSerieFactura contiene caracteres no permitidos.
- 1133El valor del campo FechaExpedicionFactura no debe ser inferior a la fecha actual menos veinte años.
- 1145Formato de fecha incorrecto.
- 1152La fecha de expedición no puede ser inferior al 28 de octubre de 2024.
- 1174El valor del campo FechaExpedicionFactura del bloque RegistroAnteriores incorrecto.
- 1175El valor del campo NumSerieFactura del bloque RegistroAnterior es incorrecto.
A tax identifier is not valid
What it means: An identifier on the invoice (of the issuer, the recipient or another party) is badly formatted, is not in the register, or does not match its country or identification type.
What to do: Check each party's tax ID. If it is the tax ID of an individual who is not in the register, use the type «Not registered» (07); if it is a company, check its tax ID and company name; if foreign, use their country and document type.
Codes (official text):
- 1101El valor del campo CodigoPais es incorrecto.
- 1102El valor del campo IDType es incorrecto.
- 1103El valor del campo ID es incorrecto.
- 1108El NIF del IDEmisorFactura debe ser el mismo que el NIF del ObligadoEmision.
- 1109El NIF no está identificado en el censo de la AEAT.
- 1110El NIF no está identificado en el censo de la AEAT.
- 1111El campo CodigoPais es obligatorio cuando IDType es distinto de NIF-IVA (02).
- 1121El campo ID no está identificado en el censo de la AEAT.
- 1122El campo CodigoPais indicado no coincide con los dos primeros dígitos del identificador.
- 1123El formato del NIF es incorrecto.
- 1126El valor del CodigoPais solo puede ser ES cuando el IDType sea Pasaporte (03) o No Censado (07). Si IDType es No Censado (07) el CodigoPais debe ser ES (España).
- 1131El valor del campo ID ha de ser el NIF de una persona física cuando el campo IDType tiene valor No Censado (07).
- 1154El NIF del emisor de la factura rectificada/sustitutiva no se ha podido identificar en el censo de la AEAT.
- 1156Para el bloque IDOtro y IDType NIF-IVA (02), el valor de TipoFactura es incorrecto.
- 1172El valor del campo NIF u ObligadoEmision son nulos.
- 1188El NIF del bloque Tercero debe ser diferente al NIF del ObligadoEmision.
- 1191Si TipoFactura es R3 sólo se admitirá NIF o IDType = No Censado (07).
- 1192Si TipoFactura es R2 sólo se admitirá NIF o IDType = No Censado (07) o NIF-IVA (02).
- 1193En el bloque Destinatarios si se identifica mediante NIF, el NIF debe estar identificado y ser distinto del NIF ObligadoEmision.
- 1211El bloque Tercero no puede estar identificado con IDType=No Censado (07).
- 1215Error en el bloque de ObligadoEmision.
- 1217Error identificando el IDEmisorFactura.
- 1219El valor del campo IDEmisorFactura es incorrecto.
- 1222El valor del campo ID del bloque IDOtro es incorrecto.
- 1232Si se identifica a través de la agrupación IDOtro y CodigoPais tiene valor ES (España), el campo IDType debe valer Pasaporte (03).
- 1233Si se identifica a través de la agrupación IDOtro y CodigoPais tiene valor ES (España), el campo IDType debe valer No Censado (07).
- 1234Si se identifica a través de la agrupación IDOtro y CodigoPais tiene valor ES (España), el campo IDType debe valer Pasaporte (03) o No Censado (07).
- 1239Error en el bloque Destinatario.
- 1240Error en el bloque de IdEmisorFactura.
- 1254Si FechaOperacion (FechaExpedicionFactura si no se informa FechaOperacion) es anterior a 01/01/2021 no se permite el valor 'XI' para Identificaciones NIF-IVA
- 1255Si FechaOperacion (FechaExpedicionFactura si no se informa FechaOperacion) es mayor o igual que 01/02/2021 no se permite el valor 'GB' para Identificaciones NIF-IVA
- 1282Si el NIF de la cabecera es persona fisica se debe informar tambien de su NombreRazon
- 1283Si el NIF de la contraparte es persona fisica se debe informar tambien de su NombreRazon
- 1290El campo ID no contiene un NIF con formato correcto.
The invoice type does not match its data
What it means: The type chosen (full, simplified, corrective or replacement) does not match the blocks that go with it: the type of correction, the replaced invoices, the corrected amount or the recipients.
What to do: Check that invoice's type and what it requires: a corrective invoice carries its type of correction; a simplified invoice (F2) or its corrective (R5) carries no recipients block.
Codes (official text):
- 1107El valor del campo TipoRectificativa es incorrecto.
- 1114Si la factura es de tipo rectificativa, el campo TipoRectificativa debe tener valor.
- 1115Si la factura no es de tipo rectificativa, el campo TipoRectificativa no debe tener valor.
- 1116Debe informarse el campo FacturasSustituidas sólo si la factura es de tipo F3.
- 1117Si la factura no es de tipo rectificativa, el bloque FacturasRectificadas no podrá venir informado.
- 1118Si la factura es de tipo rectificativa por sustitución el bloque ImporteRectificacion es obligatorio.
- 1119Si la factura no es de tipo rectificativa por sustitución el bloque ImporteRectificacion no debe tener valor.
- 1136El campo FacturaSimplificadaArticulos7273 solo acepta valores N o S.
- 1157El valor de cupón solo puede ser S o N si está informado. El valor de cupón sólo puede ser S si el tipo de factura es R1 o R5.
- 1183El campo FacturaSimplificadaArticulos7273 solo se podrá rellenar con S si TipoFactura es de tipo F1 o F3 o R1 o R2 o R3 o R4.
- 1184El campo FacturaSinIdentifDestinatarioArt61d solo acepta valores S o N.
- 1185El campo FacturaSinIdentifDestinatarioArt61d solo se podrá rellenar con S si TipoFactura es de tipo F2 o R5.
- 1189Si TipoFactura es F1 o F3 o R1 o R2 o R3 o R4 el bloque Destinatarios tiene que estar cumplimentado.
- 1190Si TipoFactura es F2 o R5 el bloque Destinatarios no puede estar cumplimentado.
The VAT or surcharge rate is not an accepted one
What it means: The tax rate or the equivalence surcharge rate is not among those accepted, or did not apply on the date of the transaction.
What to do: Check the rate applied and the transaction date: temporary rates only apply to the dates the official text gives.
Codes (official text):
- 1124El valor del campo TipoImpositivo no está incluido en la lista de valores permitidos.
- 1127El valor del campo TipoRecargoEquivalencia no está incluido en la lista de valores permitidos.
- 1132El valor del campo TipoImpositivo es incorrecto, el valor informado solo es permitido para FechaOperacion o FechaExpedicionFactura inferior o igual al año 2012.
- 1135El valor del campo TipoRecargoEquivalencia es incorrecto, el valor informado solo es permitido para FechaOperacion o FechaExpedicionFactura inferior o igual al año 2012.
- 1160Si el TipoImpositivo es 5%, sólo se admite TipoRecargoEquivalencia 0,5 o 0,62.
- 1162Si el TipoImpositivo es 21%, sólo se admite TipoRecargoEquivalencia 5,2 ó 1,75.
- 1163Si el TipoImpositivo es 10%, sólo se admite TipoRecargoEquivalencia 1,4.
- 1164Si el TipoImpositivo es 4%, sólo se admite TipoRecargoEquivalencia 0,5.
- 1165Si el TipoImpositivo es 0% sólo se admite TipoRecargoEquivalencia 0% entre el 1 de enero de 2023 y el 30 de septiembre de 2024.
- 1166Si el TipoImpositivo es 2% entre el 1 de octubre de 2024 y el 31 de diciembre de 2024, sólo se admite TipoRecargoEquivalencia 0,26.
- 1167Si el TipoImpositivo es 5% sólo se admite TipoRecargoEquivalencia 0,5 si Fecha Operacion (Fecha Expedicion Factura si no se informa FechaOperacion) es mayor o igual que el 1 de julio de 2022 y el 31 de diciembre de 2022.
- 1168Si el TipoImpositivo es 5% sólo se admite TipoRecargoEquivalencia 0,62 si Fecha Operacion (Fecha Expedicion Factura si no se informa FechaOperacion) es mayor o igual que el 1 de enero de 2023 y el 30 de septiembre de 2024.
- 1169Si el TipoImpositivo es 7,5% entre el 1 de octubre de 2024 y el 31 de diciembre de 2024, sólo se admite TipoRecargoEquivalencia 1.
- 1170Si el TipoImpositivo es 0%, desde el 1 de octubre del 2024, sólo se admite TipoRecargoEquivalencia 0,26.
- 1194El valor del campo TipoImpositivo es incorrecto, el valor informado solo es permitido para FechaOperacion o FechaExpedicionFactura posterior o igual a 1 de julio de 2022 e inferior o igual a 30 de septiembre de 2024.
- 1206Si ClaveRegimen es 11 TipoImpositivo ha de ser 21%.
- 1235El valor del campo TipoImpositivo es incorrecto, el valor informado sólo es permitido para FechaOperacion o FechaExpedicionFactura posterior o igual a 1 de octubre de 2024 e inferior o igual a 31 de diciembre de 2024.
- 1236El valor del campo TipoImpositivo es incorrecto, el valor informado solo es permitido para FechaOperacion o FechaExpedicionFactura posterior o igual a 1 de octubre de 2024 e inferior o igual a 31 de diciembre de 2024.
- 1277Valor incorrecto del TipoRecargoEquivalencia para el tipo impositivo 0%.
- 1281Solo se puede cumplimentar TipoRecargoEquivalencia y CuotaRecargoEquivalencia cuando CalificacionOperacion tiene valor Operación Sujeta y No exenta - Sin inversión del sujeto pasivo (S1)
- 1284Si se ha informado de TipoRecargoEquivalencia tambien se debe informar de CuotaRecargoEquivalencia y viceversa.
The figures do not add up
What it means: The tax amount does not match the base and the rate, the total is not the sum of its parts, the signs do not match, or the very-large-amount flag (macrodato) is missing.
What to do: Recalculate base, tax, surcharge and total in your software and send the record again.
Codes (official text):
- 1137El campo Macrodato solo acepta valores N o S.
- 1138El campo Macrodato solo debe ser informado con valor S si el valor de ImporteTotal es igual o superior a +-100.000.000
- 1139Si el campo ImporteTotal está informado y es igual o superior a +-100.000.000 el campo Macrodato debe estar informado con valor S.
- 1140Los campos CuotaRepercutida y BaseImponibleACoste deben tener el mismo signo.
- 1142El campo CuotaRepercutida tiene un valor incorrecto para el valor de los campos BaseImponibleOimporteNoSujeto y TipoImpositivo suministrados.
- 1143Los campos CuotaRepercutida y BaseImponibleOimporteNoSujeto deben tener el mismo signo.
- 1144El campo CuotaRepercutida tiene un valor incorrecto para el valor de los campos BaseImponibleACoste y TipoImpositivo suministrados.
- 1150Cuando TipoFactura sea F2 y no este informado NumRegistroAcuerdoFacturacion o FacturaSinIdentifDestinatarioArt61d no sea S el sumatorio de BaseImponibleOimporteNoSujeto y CuotaRepercutida de todas las líneas de detalle no podrá ser superior a 3.000.
- 1210El campo ImporteTotal tiene un valor incorrecto para el valor de los campos BaseImponibleOimporteNoSujeto, CuotaRepercutida y CuotaRecargoEquivalencia suministrados.
- 1216El campo CuotaTotal tiene un valor incorrecto para el valor de los campos CuotaRepercutida y CuotaRecargoEquivalencia suministrados.
The regime, classification or tax do not match
What it means: The regime key, the classification of the transaction (subject, exempt or not subject) or the tax do not match each other or the rest of the invoice.
What to do: Check with whoever handles your taxes how that transaction is classified and correct it in the software: each regime key only accepts certain classifications and rates.
Codes (official text):
- 1125El valor del campo FechaOperacion tiene una fecha superior a la permitida.
- 1134El valor del campo FechaOperacion no debe ser inferior a la fecha actual menos veinte años.
- 1146Sólo se permite que la fecha de expedicion de la factura sea anterior a la fecha operación si los detalles del desglose son ClaveRegimen 14 o 15 e Impuesto 01, 03 o vacío.
- 1147Si ClaveRegimen es 14, FechaOperacion es obligatoria y debe ser posterior a la FechaExpedicionFactura.
- 1148Si la ClaveRegimen es 14, el campo TipoFactura debe ser F1, R1, R2, R3 o R4.
- 1149Si ClaveRegimen es 14, el NIF de Destinatarios debe estar identificado en el censo de la AEAT y comenzar por P, Q, S o V.
- 1173Sólo se permite que la fecha de operación sea superior a la fecha actual si los detalles del desglose son ClaveRegimen 14 o 15 e Impuesto IVA(01) o IGIC(03) o vacío.
- 1181El valor del campo CalificacionOperacion es incorrecto.
- 1182El valor del campo OperacionExenta es incorrecto.
- 1195Al menos uno de los dos campos OperacionExenta o CalificacionOperacion deben estar informados.
- 1196OperacionExenta o CalificacionOperacion no pueden ser ambos informados ya que son excluyentes entre sí.
- 1197Si CalificacionOperacion tiene valor Operación Sujeta y No exenta - Con inversión del sujeto pasivo (S2) TipoFactura solo puede ser F1, F3, R1, R2, R3 y R4.
- 1198Si CalificacionOperacion tiene valor Operación Sujeta y No exenta - Con inversión del sujeto pasivo (S2) TipoImpositivo y CuotaRepercutida deberan tener valor 0.
- 1199Si Impuesto es '01' (IVA), '03' (IGIC) o no se cumplimenta y ClaveRegimen es 01 no pueden marcarse la OperacionExenta E2, E3.
- 1200Si ClaveRegimen es 03 CalificacionOperacion sólo puede ser Operación Sujeta y No exenta - Sin inversión del sujeto pasivo (S1).
- 1201Si ClaveRegimen es 04 CalificacionOperacion sólo puede ser Operación Sujeta y No exenta - Con inversión del sujeto pasivo (S2) o bien OperacionExenta.
- 1202Si ClaveRegimen es 06 TipoFactura no puede ser F2, F3, R5 y BaseImponibleACoste debe estar cumplimentado.
- 1203Si ClaveRegimen es 07 OperacionExenta no puede ser E2, E3, E4 y E5 o CalificacionOperacion no puede ser S2, N1, N2.
- 1205Si ClaveRegimen es 10 CalificacionOperacion tiene que ser N1, TipoFactura F1 y Destinatarios estar identificada mediante NIF.
- 1207La CuotaRepercutida solo podrá ser distinta de 0 si CalificacionOperacion es Operación Sujeta y No exenta - Sin inversión del sujeto pasivo (S1).
- 1208Si CalificacionOperacion es Operación Sujeta y No exenta - Sin inversión del sujeto pasivo (S1) y BaseImponibleACoste no está cumplimentada, TipoImpositivo y CuotaRepercutida son obligatorios.
- 1209Si CalificacionOperacion es Operación Sujeta y No exenta - Sin inversión del sujeto pasivo (S1) y ClaveRegimen es 06, TipoImpositivo y CuotaRepercutida son obligatorios.
- 1218El valor del campo Impuesto es incorrecto.
- 1237El valor del campo CalificacionOperacion está informado como Operación No sujeta (N1 o N2) y el impuesto es IVA. No se puede informar de los campos TipoImpositivo, CuotaRepercutida, TipoRecargoEquivalencia y CuotaRecargoEquivalencia.
- 1238Si la operacion es exenta no se puede informar ninguno de los campos TipoImpositivo, CuotaRepercutida, TipoRecargoEquivalencia y CuotaRecargoEquivalencia.
- 1245Si el campo Impuesto está vacío o tiene valor IVA(01) o IPSI(02) o IGIC(03) el campo ClaveRegimen debe de estar cumplimentado.
- 1246El valor del campo ClaveRegimen es incorrecto.
- 1252Si ClaveRegimen es 08 el campo CalificacionOperacion tiene que tener el valor Operación No sujeta por reglas de localización (N2) e ir siempre informado.
- 1257El campo BaseImponibleACoste solo puede estar cumplimentado si la ClaveRegimen es = '06' o Impuesto = '02' (IPSI) o Impuesto = '05' (Otros).
- 1260El campo ClaveRegimen solo debe de estar cumplimentado si el campo Impuesto está vacío o tiene valor IVA(01) o IPSI(02) o IGIC(03)
- 1286Si el impuesto es IVA(01), IGIC(03) o vacio, si ClaveRegimen es 02 solo se podrá informar OperacionExenta.
- 1289Si Impuesto es IVA(01) o vacio y si el campo OperacionExenta es igual a 'E5' sólo deberá existir la agrupación IDOtro en el bloque Destinatario.
- 1293Si ClaveRegimen es 20 el campo CalificacionOperacion tiene que tener el valor Operación No sujeta por reglas de localización (N2) e ir siempre informado.
The data of a third-party issuer
What it means: The invoice says it was issued by a third party or by the recipient, and that third party's data is missing, superfluous or inconsistent.
What to do: If a third party issues the invoice on your behalf, fill in its block with its tax ID, different from yours; if not, remove that flag.
Codes (official text):
- 1151El campo EmitidaPorTerceroODestinatario solo acepta valores T o D.
- 1155Se está informando el bloque Tercero sin estar informado el campo EmitidaPorTerceroODestinatario.
- 1158Se está informando EmitidaPorTerceroODestinatario, pero no se informa el bloque correspondiente.
- 1159Se está informando del bloque Tercero cuando se indica que se va a informar de Destinatario.
- 1178Error en el bloque de Tercero.
- 1186Si EmitidaPorTercerosODestinatario es igual a T el bloque Tercero será de cumplimentación obligatoria.
- 1187Sólo se podrá cumplimentarse el bloque Tercero si el valor de EmitidaPorTercerosODestinatario es T.
The invoicing agreement does not exist
What it means: The record cites an invoicing agreement that the Spanish Tax Agency has not registered.
What to do: Check the invoicing agreement number. If there is no registered agreement, remove that field from the record.
Codes (official text):
- 1128No existe acuerdo de facturación.
The invoicing software's data
What it means: The data of the software that generates the record is missing or wrong: its name, its identifier, its manufacturer or who generates the invoice.
What to do: The software manufacturer fixes this: give them the code. It does not depend on your invoices' data.
Codes (official text):
- 1176El valor de campo NIF del bloque SistemaInformatico es incorrecto.
- 1177El valor de campo IdSistemaInformatico del bloque SistemaInformatico es incorrecto.
- 1179Error en el bloque de SistemaInformatico.
- 1212El campo TipoUsoPosibleSoloVerifactu solo acepta valores N o S.
- 1213El campo TipoUsoPosibleMultiOT solo acepta valores N o S.
- 1214El campo NumeroOTAlta debe ser númerico positivo de 4 posiciones.
- 1220El valor del campo NombreSistemaInformatico es incorrecto.
- 1221El valor del campo IDType del sistema informático es incorrecto.
- 1223En el bloque SistemaInformatico si se cumplimenta NIF, no deberá existir la agrupación IDOtro y viceversa, pero es obligatorio que se cumplimente uno de los dos.
- 1224Si se informa el campo GeneradoPor deberá existir la agrupación Generador y viceversa.
- 1225El valor del campo GeneradoPor es incorrecto.
- 1226El campo IndicadorMultiplesOT solo acepta valores N o S.
- 1227Si el campo GeneradoPor es igual a E debe estar relleno el campo NIF del bloque Generador.
- 1228En el bloque Generador si se cumplimenta NIF, no deberá existir la agrupación IDOtro y viceversa, pero es obligatorio que se cumplimente uno de los dos.
- 1229Si el valor de GeneradoPor es igual a T el valor del campo IDType del bloque Generador no debe ser No Censado (07).
- 1230Si el valor de GeneradoPor es igual a D y el CodigoPais tiene valor ES (España), el valor del campo IDType del bloque Generador debe ser Pasaporte (03) o No Censado (07).
- 1231El valor del campo IDType del bloque Generador es incorrecto.
- 1242No existe el sistema informático.
- 1258El valor de campo NIF del bloque Generador es incorrecto.
- 1259En el bloque Generador si se identifica mediante NIF, el NIF debe estar identificado y ser distinto del NIF ObligadoEmision.
- 1273Error en el bloque de Generador.
The hash or the link to the previous record
What it means: The record's hash, or the link to the previous one (its hash, number or date), has a format or length other than the specification's, or are missing or wrongly filled in.
What to do: Check the chain with the AIM PAPYR tool and pass the result to the software provider: chained records are not rebuilt by hand.
Codes (official text):
- 1180Error en el bloque de Encadenamiento.
- 1244El campo FechaHoraHusoGenRegistro tiene un formato incorrecto.
- 1247El valor del campo TipoHuella es incorrecto.
- 1262La longitud de huella no cumple con las especificaciones.
- 1263La longitud del tipo de huella no cumple con las especificaciones.
- 1264La longitud del campo primer Registro no cumple con las especificaciones.
- 1268La longitud del campo FechaHoraHusoGenRegistro no cumple con las especificaciones.
- 1269El bloque Registro Anterior no esta informado correctamente.
- 1274Valor incorrecto campo primer registro
- 1291El HASH del Registro anterior no es alfanumérico.
- 1292El HASH no es alfanumérico.
The correction flags
What it means: The correction and prior-rejection flags are wrongly combined: for example, a prior rejection is flagged without flagging the correction.
What to do: When a corrected record is sent again, the correction is flagged and, only if it was rejected before, the prior rejection. The software sets this.
Codes (official text):
- 1153Valor del campo RechazoPrevio no válido, solo podrá incluirse el campo RechazoPrevio con valor X si se ha informado el campo Subsanacion y tiene el valor S.
- 1161El valor del campo RechazoPrevio no es válido, no podrá incluirse el campo RechazoPrevio con valor S si no se ha informado del campo Subsanacion o tiene el valor N.
- 1171El valor del campo Subsanacion o RechazoPrevio no se encuentra en los valores permitidos.
- 1275Valor incorrecto campo RechazoPrevio
- 1276Valor incorrecto campo SinRegistroPrevio
A field in a format that is not accepted
What it means: A field has a length, value or characters the specification does not accept (for example <, >, quotes or =).
What to do: Correct the field the official text names and send the record again.
Codes (official text):
- 1251El valor del campo IdVersion tiene un valor incorrecto
- 1253El valor del campo RefExterna tiene un valor incorrecto.
- 1265La longitud del campo tipo factura no cumple con las especificaciones.
- 1266La longitud del campo cuota total no cumple con las especificaciones.
- 1267La longitud del campo importe total no cumple con las especificaciones.
- 1287El valor del campo %s contiene carácteres no validos (<, >, ", ', =).
An error in a query, not in a submission
What it means: It is an error in a query to the Agency (its filters, period, flags or who is making it), not in sending an invoice.
What to do: Check the query filters in your software: period, from and to dates, and who is querying. Whoever queries must be the recipient, an attorney or a successor, authorised for the procedures needed.
Codes (official text):
- 1248El valor del campo Periodo es incorrecto.
- 1249El valor del campo IndicadorRepresentante tiene un valor incorrecto.
- 1250El valor de fecha desde debe ser menor que el valor de fecha hasta en RangoFechaExpedicion.
- 1261El campo IndicadorRepresentante solo debe de estar cumplimentado si se consulta por ObligadoEmision
- 1270El valor del campo MostrarNombreRazonEmisor tiene un valor incorrecto.
- 1271El valor del campo MostrarSistemaInformatico tiene un valor incorrecto.
- 1272Si se consulta por Destinatario el valor del campo MostrarSistemaInformatico debe valer 'N' o no estar cumplimentado.
- 1285Se han encontracado varios Sistemas Informáticos con los datos suministrados, debe filtrar la consulta por más campos del Sistema Informático.
Accepted with errors, to be corrected (10)
The Agency accepts the record, but it stays with an error and must be corrected.
The hash does not match the Agency's calculation
What it means: The hash in the record is not the one the Spanish Tax Agency calculates. The record is accepted, with an error.
What to do: Check the chain with the AIM PAPYR tool. If the recalculated hash does not match either, the software does not compute it as the specification requires: tell its provider so it can be corrected.
Codes (official text):
- 2000El cálculo de la huella suministrada es incorrecta.
The recipient is not in the register
What it means: The recipient's tax ID is not identified in the Agency's register. The record is accepted, with an error.
What to do: If the recipient is an individual whose tax ID is not in the register, identify them with the type «Not registered» (07) and correct the record; if it is a company, check its tax ID and company name, because that type is not valid for it.
Codes (official text):
- 2001El NIF del bloque Destinatarios no está identificado en el censo de la AEAT.
The previous record's hash has another length
What it means: The previous record's hash does not have the length the specification sets. The record is accepted, with an error.
What to do: Tell the software provider the code: it is a fault in how it builds the chain.
Codes (official text):
- 2002La longitud de huella del registro anterior no cumple con las especificaciones.
The previous record's hash is not valid
What it means: The content of the previous record's hash is not what the specification sets. The record is accepted, with an error.
What to do: Tell the software provider the code: it is a fault in how it builds the chain.
Codes (official text):
- 2003El contenido de la huella del registro anterior no cumple con las especificaciones.
The record's time is too far from the Agency's
What it means: The date and time the record was generated is further from the Agency's time than allowed. The record is accepted, with an error.
What to do: Check the clock and time zone of the computer the software runs on.
Codes (official text):
- 2004El valor del campo FechaHoraHusoGenRegistro debe ser la fecha actual del sistema de la AEAT, admitiéndose un margen de error de:
The total amount does not add up
What it means: The total amount is not the sum of base, tax and surcharge. The record is accepted, with an error.
What to do: Recalculate the total in your software and correct the record.
Codes (official text):
- 2005El campo ImporteTotal tiene un valor incorrecto para el valor de los campos BaseImponibleOimporteNoSujeto, CuotaRepercutida y CuotaRecargoEquivalencia suministrados.
The total tax does not add up
What it means: The total tax is not the sum of the tax amounts and surcharges. The record is accepted, with an error.
What to do: Recalculate the total tax in your software and correct the record.
Codes (official text):
- 2006El campo CuotaTotal tiene un valor incorrecto para el valor de los campos CuotaRepercutida y CuotaRecargoEquivalencia suministrados.
Flagged as first record when it is not
What it means: The record says it is the first in the chain, but the Agency already has invoices from that issuer with that software. The record is accepted, with an error.
What to do: The chain continues from the last record sent: tell the software provider.
Codes (official text):
- 2007No debe informarse como primer registro, existen facturas emitidas con el obligado emisión y el sistema informático actual.
The record is chained to itself
What it means: The previous record's hash is the same as the record's own. The record is accepted, with an error.
What to do: Check the chain with the AIM PAPYR tool and tell the software provider.
Codes (official text):
- 2008El valor de la huella del registro anterior debe ser diferente a la huella del registro actual.
The regime key is missing with IPSI
What it means: With the IPSI tax (Ceuta and Melilla) the regime key must be given. The record is accepted, with an error.
What to do: Add the regime key in the software and correct the record.
Codes (official text):
- 2009Si el campo Impuesto tiene valor IPSI(02) el campo ClaveRegimen debe de estar cumplimentado.
Source: Spanish Tax Agency, Verifactu «Lista de códigos de error» (file of 30 July 2026, consulted on 21 November 2026) and «Documento de validaciones y errores», version 1.2.2. sede.agenciatributaria.gob.es