Error 3089 SUNAT: El XML contiene mas de un tag como elemento de numero de documento del emisor
Fuente: Reglas de validación de SUNAT, actualizado al 26.08.2026. Los mensajes y las condiciones son textos oficiales de SUNAT.
Qué significa
SUNAT devuelve el código 3089 con el mensaje «El XML contiene mas de un tag como elemento de numero de documento del emisor».
Es un error: SUNAT rechaza el comprobante y no tiene validez tributaria.
Aparece en: Factura, Boleta de venta, Liquidación de compra, DAE adquirente, DAE operador, DAE SEAE, DOAE atribución.
Cuándo aparece
Estas son las reglas de validación de SUNAT que devuelven el código 3089, con su texto oficial:
FacturaError
Dato: Número de RUC
Tag UBL:
/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID (Número de RUC)Condición: Existe más de un Tag UBL cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification
Boleta de ventaError
Dato: Número de RUC
Tag UBL:
/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID (Número de RUC)Condición: Existe más de un Tag UBL cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification
Liquidación de compraError
Dato: Número de RUC
Tag UBL:
/SelfBilledInvoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID (Número de RUC)Condición: Existe más de un Tag UBL cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification
DAE adquirenteError
Dato: Número de RUC
Tag UBL:
/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID (Número de RUC)Condición: Existe más de un Tag UBL cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification
DAE operadorError
Dato: Número de RUC
Tag UBL:
/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID (Número de RUC)Condición: Existe más de un Tag UBL cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification
DAE SEAEError
Dato: Número de RUC
Tag UBL:
/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID (Número de RUC)Condición: Existe más de un Tag UBL cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification
DOAE atribuciónError
Dato: Número de RUC
Tag UBL:
/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID (Número de RUC)Condición: Existe más de un Tag UBL cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification
Cómo resolverlo
Revisa el dato y el tag UBL que indica la regla y corrígelo para que no se cumpla la condición de SUNAT.
Si SUNAT ya rechazó el comprobante, su número queda usado: no lo reenvíes igual. Corrige los datos y emite un comprobante nuevo.
Cómo lo ves en API SUNAT
Con API SUNAT no armas el XML: envías la venta en JSON y la API lo genera, lo firma y lo envía a SUNAT. Si SUNAT rechaza el comprobante, la emisión responde con status "rejected" y el código en sunat.errorCode y sunat.errorMessage; las observaciones llegan con status "accepted_with_observations".
También puedes recibirlo por webhook (document.rejected o document.observed). Ver los estados en la documentación.
