Sync on-prem files to a CSV parser every 5 minutes

Recipe ToolsMarketingDocument/FileData ParserUtilities

What it does

Every 5 minutes, this automation lists all files in an on-prem folder and downloads each one. It parses the CSV content, adds items to a test list, and logs the outcome to a job report.

Who it's for

Data and analytics teams who need to monitor on-prem files and parse them on a schedule without manual intervention.

How teams use this

Monitor on-prem files on schedule

Run the file sync every 5 minutes to catch new files as they arrive in the on-prem folder. The automation downloads and parses each one without manual checks.

Track file processing in job reports

Log each sync cycle to a job report so the team can audit which files were processed and when. Errors are captured so failures do not go unnoticed.

Filter files by name or type

Add a condition to the file list step so only CSV files matching a pattern are downloaded and parsed. This reduces noise and focuses on the data the team needs.

Route errors to a monitoring channel

Include a Slack step after the error check so the team is notified when a file fails to parse. The job report link is sent so the team can investigate right away.

How it works

  1. Run every 5 minutes. The automation starts on a 5-minute interval to check for new files in the on-prem folder.
  2. List all files in the folder. Query the on-prem folder to retrieve all available files so each one can be processed in the next steps.
  3. Download each on-prem file. For each file found, download it from the on-prem location so it can be parsed by the CSV parser in the next step.
  4. Parse CSV content. Extract data from each downloaded CSV file and add the parsed items to a test list for tracking and review.
  5. Log results to job report. Record the outcome of the file sync and parse operation to the job report, including any errors encountered during processing.