TL;DR — Quick Summary
Aspel SAE shows errors on customer quotes and sales orders. Fix CFDI 4.0 data, inventory shortages, price lists, folio sequences, and multi-user issues.
Errors in customer quotes and sales orders in Aspel SAE are among the most common causes of sales delays for Mexican businesses. From the “Error al generar cotización” message due to incomplete fiscal data to problems converting documents to orders or invoices, each error can stall a transaction. This article covers root causes and concrete solutions for the complete quote → order → invoice workflow in Aspel SAE.
The Error
Aspel SAE can display several error messages when working with quotes and orders:
- “Error al generar cotización” — appears when saving or printing a quote if the customer has incomplete fiscal data.
- “Error al convertir cotización a pedido” — displayed when inventory is insufficient for one or more requested items.
- “Error al facturar pedido” — occurs when generating a CFDI from an order if the item tax setup does not match the recipient’s data.
- Duplicate or skipped folio — appears after a database repair or when two users create documents simultaneously.
- “Error de conexión” — in network mode, when multiple users try to generate quotes at the same time and the Aspel server does not respond correctly.
Root Cause
Incomplete customer data for CFDI 4.0
Since CFDI version 4.0 became mandatory in Mexico (2022), the SAT requires invoices to include the recipient’s RFC, exact legal name, fiscal regime, and postal code of their fiscal address. Aspel SAE validates these fields from the quote stage to ensure the document can be stamped without errors. If the customer catalog has incomplete records or data from the previous regime, the system blocks document generation.
Insufficient inventory
When a salesperson creates a quote with quantities that exceed available stock, Aspel SAE blocks the conversion to a sales order (unless the “sell in negative” parameter is enabled). This control prevents committing non-existent merchandise but can cause confusion if not properly configured.
Outdated price lists
Aspel SAE supports multiple price lists per customer or group. If a list is updated while open quotes still reference the previous version, displayed prices will not match the current catalog. This causes discrepancies when printing and errors when invoicing if amounts do not balance.
Inconsistent tax configuration
To invoice an order, each item must have a SAT product or service key (c_ClaveProdServ catalog) and the correct VAT rate assigned. If an item was created before CFDI 4.0 and was never updated, the stamping process will fail.
Duplicate or out-of-sequence folios
After running Aspel’s repair utilities or when restoring a backup over a database that has newer documents, the folio table can become desynchronized, generating duplicate numbers or gaps in the sequence.
Multi-user network conflicts
In network installations, if multiple users create quotes simultaneously and the Aspel server is not properly configured (or the server machine has a firewall blocking the communication port), intermittent connection errors appear.
Step-by-Step Solution
Step 1 — Complete customer data for CFDI 4.0
- In Aspel SAE go to Clientes > Catálogo de Clientes.
- Search for and open the customer record showing the error.
- Verify and complete the following mandatory fields:
- RFC (13 characters for individuals, 12 for companies).
- Name or legal name exactly as it appears on the customer’s SAT tax status certificate.
- Fiscal Regime — select from the catalog (e.g., 601 General Corporate Regime, 612 Individual Business Activities, etc.).
- Postal Code of the fiscal address (5 digits, as shown on the SAT certificate).
- Save the record and retry generating the quote.
Tip: Ask your customers for their updated Constancia de Situación Fiscal (downloadable from the SAT portal). The data must match exactly, including spaces and accents in the legal name.
Step 2 — Check inventory before converting to an order
- Consult Inventarios > Existencias por Artículo or the General Stock report.
- Compare available quantity with the quantity requested in the quote for each item.
- If there are shortages, first process a stock entry (Inventarios > Entradas) or a purchase order to the supplier.
- Alternatively, if your business accepts partial fulfillments, enable the option in Configuración > Parámetros del Sistema > Ventas > Permitir Surtido Parcial de Pedidos.
- With partial fulfillment enabled, the system will generate an order with the fulfillable lines and leave the rest as pending for a later shipment.
Step 3 — Update prices and review discount policies
- Go to Catálogos > Listas de Precios and confirm the list assigned to the customer has current prices.
- For already-issued quotes with outdated prices: open them, click Recalcular Precios (if available in your version) or cancel the quote and create a new one.
- Verify the discount percentage applied. In Configuración > Políticas de Descuento there is a maximum percentage per price list or per salesperson. If the applied discount exceeds that limit, Aspel SAE will reject it with an error message.
- Adjust the discount within the allowed range or ask a user with an administrator profile to temporarily increase the limit.
Step 4 — Run the quote → order → invoice workflow
- From Cotizaciones > Consulta, find the quote with “Pending” or “Authorized” status.
- Select the quote and use Convertir a Pedido. SAE will automatically create the order with the same items, quantities, and prices.
- In Pedidos > Consulta, locate the newly created order. Check the fulfillment status (Total, Partial, or Pending).
- For partially fulfilled orders, record the corresponding inventory outflows from Inventarios > Salidas linked to the order.
- Once fulfilled (fully or partially), go to Pedidos > Facturar. Aspel SAE will generate the CFDI 4.0 and send it to the PAC for stamping.
- If a stamping error appears, check in Catálogos > Artículos that each product has the correct SAT key and corresponding VAT rate assigned (16%, exempt, or zero rate).
Step 5 — Repair folio sequences and configure multi-user access
Folios:
- Close all instances of Aspel SAE on the network.
- Run Utilerías > Actualización de Saldos y Folios.
- Select the document type (Quote, Order, or both) and run the update.
- Restart SAE and verify that the next folio is the logical continuation of the last valid document.
Multi-user:
- Confirm that a single machine acts as the Aspel server (the one hosting the database).
- On client machines, verify the connection settings in empresas.xml to ensure they point correctly to the server.
- In the server’s firewall, make sure the Aspel SAE TCP port (default 2638 for Sybase/SQL Anywhere, or the port configured in your installation) is open for the internal network.
- If the problem persists, check the Error Log in Utilerías > Bitácora del Sistema to identify the user or machine causing the conflict.
Alternative Solution
If you need to issue a quote urgently and the customer does not yet have their fiscal data updated, you can generate a non-fiscal quote (non-stampable) by enabling the “Sin datos fiscales / Solo referencia” option on the quote. This document serves as an internal commercial offer but cannot be directly converted to a CFDI; you must update the customer before invoicing.
For folio errors in production without the ability to stop operations, you can manually force the next folio in Configuración > Folios y Series, assigning a starting number that does not conflict with existing documents.
Prevention
- Keep the customer catalog updated. Request the tax status certificate at the start of each fiscal year and when registering any new customer.
- Update price lists before salespeople start quoting. Establish a price list approval process with effective dates.
- Take daily backups of the Aspel SAE database before running any repair utility or folio update.
- Train your sales team on the correct quote → order → invoice workflow. Most errors originate from skipping steps or not saving correctly before closing the system.
- Configure user profiles in Aspel SAE so salespeople can only access quotes and orders, leaving tax configuration and folios to the administrator.
- Review the error log (Utilerías > Bitácora) at least once a week to catch recurring issues before they affect critical operations.
Related Issues
- “Stamping error: recipient not found in SAT registry” — the customer’s RFC is inactive or incorrectly entered. Verify on the SAT portal using the RFC lookup tool.
- Quote printed with incorrect prices — caused by an outdated print template. Go to Reportes > Diseñador de Formatos and update the quote template.
- Partially fulfilled order does not update inventory — occurs when the inventory outflow is not correctly linked to the order. Check in Inventarios > Movimientos that the outflow references the order number.
- “Cannot invoice: order already invoiced” — Aspel SAE blocks double invoicing. If you need to correct it, first cancel the issued CFDI on the PAC portal and then re-invoice from the order.
- Discount not applied even though it is within the limit — verify the item does not have the “Fixed price / No discount” option checked in its catalog entry.
Summary
- Errors in Aspel SAE quotes and orders stem primarily from incomplete customer data for CFDI 4.0, insufficient inventory, outdated price lists, or incorrect item tax configuration.
- The correct flow is quote → order → fulfillment → invoice; skipping steps or not updating catalogs causes the majority of errors.
- Duplicate or skipped folios are repaired with Utilerías > Actualización de Saldos y Folios after closing all SAE instances.
- In network installations, simultaneous connection errors are resolved by verifying the server configuration, the empresas.xml file on client machines, and opening the TCP port in the firewall.
- The most effective prevention is keeping customer catalogs (with SAT data), item catalogs (SAT key and VAT rate), and price lists updated before each sales cycle.