Archive and split large CSV files in Google Drive
Recipe ToolsMarketingDocument/FileSales EnablementDatabaseUtilitiesData Parser
What it does
When the clock triggers every 5 minutes, this automation searches Google Drive for CSV files. It splits each file into smaller chunks with up to 20 million rows and renames them so large datasets stay manageable.
Who it's for
Data and analytics teams who need to process large CSV files without hitting size limits or performance issues.
How teams use this
Split large data exports automatically
Export a large dataset from a database to CSV, and this automation splits it into 20-million-row chunks every 5 minutes. The split files are ready to load into analytics tools without manual intervention.
Process manifests from a vendor feed
When a vendor sends a manifest CSV file to Google Drive, this automation detects it by name, splits it into smaller files, and organizes them in folders. Only files with manifest in the name are processed.
Reduce load on downstream systems
Split incoming CSV files into smaller batches so downstream systems like data warehouses or analytics tools can ingest them without timeouts. Each split file stays under the row limit your system requires.
How it works
- Start the split process every 5 minutes. The Clock triggers this automation on a 5-minute schedule to search for CSV files that need splitting into smaller batches.
- Find CSV files in Google Drive. Search Google Drive for CSV files that match the criteria and are ready to be split into smaller batches for processing.
- Parse and split the CSV into chunks. Read the CSV file contents using Csv Parser and split it into separate files, each containing up to 20 million rows to keep sizes reasonable.
- Rename and organize split files. Rename each split CSV file with a sequential identifier and move it back to Google Drive in the designated folder for downstream processing.
- Archive the original file. Move the original large CSV file to an archive folder after splitting is complete so it does not get processed again in future runs.