TL;DR — Quick Summary

Fix CONTPAQi Contabilidad journal entry errors: unbalanced debits and credits, CFDI import failures, duplicate folios, and SAT XML generation issues.

CONTPAQi Journal Entry Errors

Journal entries (pólizas) are the core of every transaction recorded in CONTPAQi Contabilidad. When an entry fails to save, a CFDI cannot be imported, or the SAT XML export fails, the entire accounting workflow stops. This guide covers the most common errors and how to resolve them.

The Error

The most common error messages related to journal entries are:

  • “Error al guardar póliza” — appears when posting or saving an entry.
  • “La póliza no está cuadrada” — debits do not equal credits.
  • “La cuenta contable no existe en el catálogo” — account code not found in the chart.
  • “UUID no encontrado” or “UUID duplicado” — when importing a CFDI.
  • “El monto del CFDI no coincide” — amount mismatch between the fiscal XML and the entry.
  • “Folio duplicado” — two users created entries of the same type simultaneously.
  • “Error al generar XML de Contabilidad Electrónica” — missing SAT grouping code or undefined account nature.

Root Cause

ErrorRoot Cause
Unbalanced entryRounding difference or data entry mistake
Account not foundNot created in chart or wrong code used
UUID not foundCFDI not stamped or UUID copied incorrectly
Duplicate UUIDSame invoice already imported previously
CFDI amount mismatchTax withholdings not accounted for separately
Duplicate folioTwo users posting same type in same period
SAT XML errorMissing Annex 24 grouping code on account

Step-by-Step Solution

Step 1 — Verify Entry Balance

  1. Open the entry from Pólizas > Consultar.
  2. Check the status bar at the bottom: Cargo = Abono must be true.
  3. Identify the incorrect line if there is a difference.
  4. For cent-level rounding differences, add a line to account 791 — Exchange Differences or miscellaneous expenses.
  5. Save and post the entry.

Step 2 — Validate Accounts

  1. Open Catálogo de Cuentas.
  2. Search for the account code reported in the error.
  3. If missing, create the account with its nature (Deudora or Acreedora) and level.
  4. Assign the SAT grouping code per Annex 24.
  5. Confirm the grouping code is not duplicated on another account.

Step 3 — Import CFDI Correctly

  1. In the entry go to Importar > CFDI (XML).
  2. Enter the full 36-character UUID (with hyphens).
  3. The system validates issuer RFC, recipient RFC, total amount, and VAT breakdown.
  4. If the amount differs, check whether the CFDI includes VAT or ISR withholdings that must be recorded separately.
  5. If the UUID was already imported, find the original entry where it was recorded.

Step 4 — Fix Folios and Concurrency

  1. Go to Herramientas > Reconstruir Consecutivos de Pólizas.
  2. Select the entry type (Ingreso, Egreso, Diario, Nómina) and fiscal year.
  3. The system reassigns folios consecutively with no duplicates.
  4. To prevent the issue, assign each user a specific entry type or period from Administración > Usuarios.

Step 5 — Generate SAT XML

  1. Go to Reportes > Contabilidad Electrónica.
  2. Select the fiscal period (month/year).
  3. Generate in order: Catálogo de Cuentas XMLBalanza XMLPólizas XML.
  4. If the Catálogo XML fails, return to the chart of accounts and assign missing grouping codes.
  5. Validate the generated XML with the SAT Validator before uploading to the tax portal.

Alternative Solution

If automatic CFDI-to-journal-entry generation creates entries with wrong accounts, temporarily disable the feature:

  1. Go to Configuración > Parámetros del Sistema > CFDI.
  2. Uncheck “Generar póliza automáticamente al timbrar”.
  3. Capture entries manually for the affected period.
  4. Fix the account mapping in Configuración > Conceptos CFDI > Cuentas Contables and re-enable.

Prevention

  • Keep the chart of accounts updated with current SAT grouping codes at the start of each fiscal year.
  • Configure CFDI concept mapping before the new year begins.
  • Set a one user per entry type policy during monthly close to avoid folio duplicates.
  • Validate the SAT XML before the 25th of each month to allow time for corrections.
  • Enable balance validation so the system blocks saving unbalanced entries.

Summary

  • The most common error is an unbalanced entry (debits ≠ credits); resolved by identifying the wrong line or adding a rounding adjustment.
  • CFDI import errors stem from a wrong UUID, amount mismatch, or duplicate UUID.
  • Duplicate folios are fixed with the Reconstruir Consecutivos tool and prevented with user access controls.
  • SAT XML generation requires all accounts to have Annex 24 grouping codes assigned.
  • Automatic CFDI-to-entry can produce wrong accounts if the concept mapping is outdated.