Process large CSV files with Ruby code

Recipe ToolsMarketingDeveloper Tool

What it does

When a scheduled trigger fires every 5 minutes, this automation runs Ruby code to parse a CSV file beyond standard row limits. The parsed output logs to the job report for review.

Who it's for

Engineering teams who need to process large CSV files that exceed standard parsing constraints.

How teams use this

Process large CSV files programmatically

Use Ruby to parse a CSV with more than 50k rows, which exceeds the limit of standard parsing tools. The output logs to the job report for review.

Transform CSV data during parsing

Add Ruby logic to filter, clean, or restructure the CSV data as it is parsed. Only include rows that meet certain conditions or reformat fields on the fly.

Send parsed data to a downstream system

Extend this automation to include a step that sends the parsed output to a database, API, or data warehouse after the Ruby code runs. The parsing step stays the same and only the destination changes.

How it works

  1. Run on a 5-minute schedule. This automation starts every 5 minutes so the CSV parsing happens at regular intervals without manual intervention.
  2. Execute Ruby code to parse CSV. Run custom Ruby code in Workato Custom Code that reads and parses the CSV file, handling rows beyond the standard 50k limit that built-in tools enforce.
  3. Log the parsed output. Write the parsed results to the job report in Workato Custom Code so someone can see what was extracted from the CSV and verify the data is correct.