Odoo large exports: the timeout problem and the background wizard
Large exports time out in Odoo because the standard web export builds the entire CSV or XLSX file synchronously inside a single HTTP worker request. By default, Odoo kills any request exceeding 60 seconds of CPU time or 120 seconds of real wall-clock time, and Odoo Community lacks a built-in background export queue. Teams exporting tens of thousands of CRM records either split exports into filtered batches, call paginated RPC scripts, or use a background export wizard.
Key facts
- Odoo's official Export and Import documentation warns that large exports can trigger a time out error and recommends splitting operations into smaller batches. Source: odoo.com
- In Odoo's command-line configuration, --limit-time-cpu defaults to 60 seconds and --limit-time-real defaults to 120 seconds of wall-clock time per HTTP or RPC request. Source: odoo.com
- Odoo's production deployment reference shows tuned worker configs raising limit_time_cpu to 600 seconds and limit_time_real to 1200 seconds for heavier server workloads. Source: odoo.com
- Odoo 19's export wizard defaults to showing only visible fields ordered like the underlying list view, reducing accidental wide-table exports. Source: odoo.com
On this page
Why large exports time out in Odoo 19
Odoo web-interface exports run synchronously inside a single HTTP request, so exporting tens of thousands of opportunities, contacts, or joined sub-fields causes the server worker or reverse proxy to kill the job mid-flight.
Any team moving 10 to 20 years of pipeline history into Odoo—for context, one manufacturer rep agency migration involved roughly 28,000 opportunities and over 20,000 closed deals—eventually needs to pull large CSV snapshots back out for audits, cleanup, or executive spreadsheets. As covered in our complete guide to Odoo CRM for sales teams, Odoo’s own Export and Import Data documentation (checked Nov 2026) explicitly warns users that large exports trigger a “time out” error and advises splitting them into smaller batches.
The root cause is architectural:
- You tick records in a List view and click Action > Export.
- Odoo assigns one HTTP worker process to query PostgreSQL, walk relational fields (such as
partner_id,user_id, tags, or line items), and serialize every row in memory. - Nothing streams incrementally to your browser until the full CSV or Excel payload finishes building.
- If the query and formatting pass the server’s time or memory ceiling, Odoo aborts the worker and your browser shows an error or dropped connection.
Which worker and proxy limits trigger the timeout
Two built-in Odoo worker timers—--limit-time-cpu at 60 seconds and --limit-time-real at 120 seconds—terminate long export requests before a reverse proxy like Nginx adds its own cutoff.
In production Unix deployments, Odoo runs in multiprocessing mode (workers greater than 0), where each HTTP worker is governed by strict resource guardrails documented in the Odoo 19.0 CLI reference (checked Nov 2026):
| Limit parameter | Default value | Production example in Odoo docs | What triggers it during an export |
|---|---|---|---|
--limit-time-cpu |
60 seconds | 600 seconds (deploy.html) | Python CPU time spent formatting rows, dates, translations, and Excel cells |
--limit-time-real |
120 seconds | 1200 seconds (deploy.html) | Total wall-clock seconds, including PostgreSQL joins and disk I/O |
limit_memory_soft / hard |
Worker RAM caps | 629 MB soft example in docs | Building large in-memory .xls / .xlsx workbooks across wide field lists |
| Reverse proxy timeout | Often 60–120s (Nginx) | Must exceed limit_time_real |
Browser receives 504 Gateway Time-out even if Odoo worker is still running |
Notice the interaction between CPU time and wall time. A .csv export with five simple text columns might stay well under 60 CPU seconds, whereas an .xls export with 30 columns—especially nested many-to-many tags or computed monetary fields—burns both CPU formatting cycles and wall-clock SQL wait time simultaneously.
Raising limit_time_cpu and limit_time_real in odoo.conf helps on dedicated instances, but it introduces a side effect: while one worker spends five minutes building a giant spreadsheet, that worker cannot handle normal rep clicks. On small servers with four workers, two simultaneous exports can stall half the sales team.
How to diagnose an Odoo export timeout in five minutes
Check the exact elapsed seconds, HTTP status code, and file format of the failed export to determine whether CPU serialization, wall-clock query time, Nginx proxy cutoffs, or worker RAM killed the request.
Run through four quick checks before changing server configuration:
- Match the timer to the failure window: An HTTP
504 Gateway Time-outright at 60 seconds usually points to a reverse-proxy cutoff (proxy_read_timeoutin Nginx) rather than Odoo’s 120-secondlimit_time_real. Odoo’s System Configuration documentation (checked Nov 2026) setsproxy_read_timeout,proxy_connect_timeout, andproxy_send_timeoutto720sin Nginx so the proxy never disconnects before Odoo’s worker finishes. - Test
.csvvs.xls/.xlsxon the same filter: If a 5,000-row Excel export hits--limit-time-cpu(60s) orlimit_memory_soft(roughly 600 MiB in Odoo’s example sizing), switching to.csvdrops worksheet formatting overhead and isolates whether SQL joins or Excel serialization caused the bottleneck. - Check whether I want to update data (import-compatible export) is ticked: Per Odoo 19.0 Export and Import Data (checked Nov 2026), ticking the import-compatible checkbox filters the field selector down to importable fields only and automatically embeds each row’s External ID, avoiding heavy read-only computed columns.
- Watch concurrent worker saturation: In multiprocessing mode (
workers > 0), Odoo pairs worker RAM caps (limit_memory_softandlimit_memory_hard) with request timers. Raising timeouts on a low-worker server lets two wide exports tie up active HTTP slots for every other rep in CRM.
Workarounds in native Odoo (and where they break down)
Filtering records into smaller date batches, exporting .csv instead of .xls, and trimming relational sub-fields avoids timeouts on occasional pulls, though manual chunking breaks down for full-table backups.
Before adding custom tooling, four native habits eliminate many everyday export failures:
- Export CSV rather than Excel: In the Export Data dialog,
.csvwrites flat comma-delimited text without worksheet formatting overhead. - Trim columns to what you actually need: Starting in the Odoo 19 Release Notes (checked Nov 2026), the export wizard defaults to showing only the visible fields in the same order as your underlying list view. Keep Show sub-fields restricted to essential keys rather than expanding deep related tables.
- Save Export Templates: Save a lean field set under New template so reps stop re-selecting heavy relational fields every week.
- Batch by date window: Filter
Created onby quarter or year (for example, 2024 vs 2025) so each file stays under a few thousand rows.
Those workarounds fall short in three common scenarios:
- Backup-first data cleanup: Before merging duplicates or normalizing picklists during CRM Data Cleanup, you need a complete, unsplit snapshot of 20,000 to 50,000 records. Manual quarter-by-quarter exports invite missed rows or inconsistent column selections.
- Audit and compliance pulls: Finance or operations teams often need a single historical extract across all closed opportunities and customer records.
- Community Edition teams without a developer: Odoo Community has no built-in asynchronous export queue in the UI, leaving non-technical managers stuck splitting filters by hand whenever an export crosses the 120-second limit.
How a background export wizard fixes large CRM extracts
A background export wizard decouples file generation from the web browser request by queueing the export as an asynchronous server job and delivering the finished CSV or XLSX file when ready.
Instead of forcing one HTTP worker to finish before the browser connection drops, a background export wizard works in four steps:
- Capture the active filter and field template: The user selects records or a saved Favorite filter (such as all 28,000 opportunities) and chooses their export fields in the normal UI.
- Hand off to a background job or cron worker: The wizard returns control to the user’s browser immediately instead of holding an HTTP thread open.
- Chunk the PostgreSQL query internally: A background worker fetches records in controlled page sizes (for example, 1,000 or 2,000 IDs per batch), keeping memory flat and avoiding worker timeouts.
- Store and notify: Once finished, the file attaches to the export job record (or triggers a notification link) so the user downloads the complete file with zero browser timeout risk.
Because Odoo Community Edition does not include a background export queue natively, Front Row ships a large background export wizard inside our Salesforce-to-Odoo migration kit—built directly out of the tooling needed on a 28,000-opportunity rep agency rollout. That means teams running $0 Community licences on Front Row Managed Odoo Hosting can pull full opportunity and contact snapshots cleanly without touching a terminal.
When to use RPC scripts or pg_dump instead of the UI
For automated nightly extracts, external BI pipelines, or full disaster-recovery backups, paginated RPC scripts and PostgreSQL dumps outperform any UI wizard.
Choose the extraction method that matches the job size and how your Odoo instance is hosted:
| Extraction method | Best row range | Works on Odoo Online? | Needs developer / SSH? | Best use case |
|---|---|---|---|---|
| Native UI Export (batched) | Up to ~2,000–5,000 rows per batch | Yes | No | Ad-hoc rep lists and monthly spot checks |
| Background Export Wizard | 5,000–100,000+ rows | No (blocked on Online) | Install once; none for users | Full CRM table snapshots and manager Excel pulls in Community |
| Paginated XML-RPC / JSON-RPC script | 10,000–500,000+ rows | Custom plan only (External API) | Yes (Python script) | Scheduled syncs and structured Odoo CRM data imports |
Direct pg_dump + filestore |
Entire database | No | Yes (admin/hosting) | Full-instance backups and server migrations |
Note the hosting boundary if you run Odoo Online: because Odoo Online blocks third-party modules and provides no direct PostgreSQL access—and restricts External API access to the Enterprise Custom plan—you cannot install a background export wizard there. Compare deployment architectures in Hosting Odoo for a 40-seat sales team.
How export timeout fixes differ across Odoo Online, Odoo.sh, and self-hosted Odoo
Self-hosted and managed-hosted Odoo instances let administrators tune odoo.conf, install background export wizards, and run pg_dump, whereas Odoo Online blocks server configuration edits, custom modules, and direct database access.
| Deployment option | Edit limit_time_real / Nginx? |
Install background export wizard? | API / PostgreSQL extraction path |
|---|---|---|---|
| Odoo Online (SaaS) | No (Odoo-managed limits only) | No (custom modules blocked per Odoo Online docs) | Batch UI exports; External API on Custom plan only |
| Odoo.sh | Platform-managed proxy/workers; cron jobs supported | Yes (via Git branch modules) | External API on Custom; PostgreSQL shell access |
| Self-hosted / Front Row Managed Hosting | Yes (odoo.conf + Nginx proxy_read_timeout) |
Yes (included in Front Row migration kit) | External API, direct pg_dump, and filestore exports |
If you are moving off Salesforce from Odoo Online—or outgrowing Online’s export and reporting limits—read our Odoo CRM review for a 25-seat B2B sales team or check Salesforce to Odoo migration packages to see how we transfer databases onto managed hosting.
How to paginate large CRM exports safely over Odoo 19’s External API
When extracting 10,000 to 500,000 CRM records automatically, send paginated search_read requests with explicit fields, limit, and ordered ID ranges to Odoo 19’s /json/2 endpoint so every HTTP call completes in under a second.
Odoo 19 introduces the External JSON-2 API at POST /json/2/{model}/{method} authenticated with a bearer API key header (Authorization: bearer {api_key}), as documented in Odoo 19.0 External JSON-2 API (checked Nov 2026). Note that Odoo 19 formally deprecates /xmlrpc, /xmlrpc/2, and /jsonrpc, scheduling them for removal in Odoo 22 (fall 2028) and Odoo Online 21.1 (winter 2027), so new export scripts should target /json/2. Keep four safeguards in every extraction script:
- Request 500 to 1,000 records per page: Small batch sizes keep each server call far below the 60-second CPU and 120-second wall-clock limits.
- Pass an explicit
fieldslist: Never pull every field oncrm.lead; request only the IDs, foreign keys, dates, and stage columns your audit or warehouse needs. - Paginate by
id > last_seen_idinstead of deepoffset: On 100,000+ rows, highoffsetvalues force PostgreSQL to scan and discard earlier rows on every loop. Filtering["id", ">", last_id]withorder: "id asc"keeps every page fast. - Append rows to disk after each page: Write each JSON response directly to your local
.csvfile so a network hiccup at row 42,000 resumes from the last saved ID rather than restarting from zero.
If you run self-hosted Odoo or move onto Front Row Managed Odoo Hosting ($199/month up to 25 users), you retain both UI background exports and on-demand full PostgreSQL database dumps plus filestore exports at any time. Planning a larger CRM move? Start with our $1,500 Salesforce Exit Audit to size your record counts and export requirements before cutover.
Frequently asked questions
Why does Odoo time out when I export thousands of opportunities or contacts?
When you click Action > Export in an Odoo list view, one HTTP worker queries PostgreSQL, resolves relational sub-fields, formats every cell into CSV or XLSX, and streams the finished file inside a single request. If that process crosses the server's CPU limit (60 seconds default), wall-clock limit (120 seconds default), or reverse-proxy timeout, the worker is killed and the browser receives an error.
How many rows can you safely export from Odoo CRM at one time?
There is no fixed universal row cap because export duration depends heavily on how many relational sub-fields and computed fields you include. Exporting five flat columns across 10,000 opportunities may finish in seconds, whereas exporting 35 fields with nested partner, tag, and message counts can time out at 3,000 rows. Splitting exports by creation date or ID ranges keeps each request safely under timeout thresholds.
Does Odoo Community Edition have a built-in background export feature?
No. Standard Odoo Community runs list-view exports synchronously in the web request cycle and does not ship a native asynchronous export queue for large CSV or Excel jobs. Teams running Community on self-hosted servers or Front Row Managed Odoo Hosting either raise worker timeouts cautiously, run paginated Python scripts over RPC, or install a background export wizard that writes files asynchronously.
Does raising limit_time_real in odoo.conf fix large export timeouts?
Raising limit_time_real and limit_time_cpu—along with matching proxy_read_timeout values in Nginx—buys extra execution seconds, but it is a blunt fix. Keeping an HTTP worker tied up for 10 minutes blocks that worker from serving other users and can exhaust worker memory on very large XLSX spreadsheets. Background job processing or paginated extraction is safer for multi-user databases.
Why is XLSX export slower and more likely to time out than CSV?
Odoo's Export Data dialog supports both .csv and .xls/.xlsx formats. While CSV simply writes comma-separated plain text lines, Excel exports construct formatted workbook objects in memory before writing the response. For backups, data cleanup snapshots, or extracts above several thousand rows, choosing CSV cuts both CPU time and memory pressure substantially.
Can we export all our data anytime if Front Row hosts our Odoo instance?
Yes. On Front Row Managed Odoo Hosting, your team can run standard CRM exports, use the background export wizard included in our migration kit for large tables, or request a complete PostgreSQL database dump plus the filestore at any time. We deliver full exports within 2 business days and never restrict access to your own data.
Sources
- Odoo 19.0 Export and Import Data Documentation (checked )
- Odoo 19.0 Command-Line Interface Reference (checked )
- Odoo 19.0 System Configuration and Deployment (checked )
- Odoo 19 Release Notes (checked )
- Odoo 19.0 External JSON-2 API Documentation (checked )
- Odoo 19.0 Odoo Online Administration Documentation (checked )