Sync CSV on-prem files on schedule

Recipe ToolsMarketingDocument/FileData ParserUtilities

What it does

When a scheduled interval arrives, this automation downloads an on-prem file and parses its CSV contents. It checks each line against a condition and appends matching rows to another on-prem CSV file.

Who it's for

Data and analytics teams who need to process on-prem CSV files on a recurring schedule without manual intervention.

How teams use this

Process daily data exports on schedule

Download a CSV export from an on-prem database each morning, parse the rows, filter by a business rule, and append the matching records to a summary file. The team gets an updated CSV without manual steps.

Validate and archive compliant records

Run the automation nightly to parse an on-prem CSV, check each row against a compliance condition, and append only valid records to an archive file. Non-matching rows are logged but not written.

Add a second condition filter

Extend the automation to check each CSV line against two conditions instead of one, so only rows that meet both rules are appended to the output file. Set a second condition variable and update the logic.

How it works

  1. Start on a scheduled interval. At the scheduled time, this automation wakes up and begins downloading the on-prem file for processing.
  2. Download the on-prem CSV file. Retrieve the CSV file from the on-prem location so Csv Parser can convert its contents into a structured list.
  3. Parse CSV into a list of lines. Convert the CSV file into a structured list so each row can be checked against the condition and processed individually.
  4. Append matching rows to output file. For each line that meets the condition, write that row to another on-prem CSV file and log the result to the job report.