Sync SFTP files daily with resilient retry logic
Recipe ToolsMarketingWorkatoFile Transfer
What it does
When the daily schedule runs at 8:00 AM, this automation fetches active file transfer rules from a lookup table and searches SFTP for matching files. It processes each file with automatic retry, logs persistent failures, and continues so one error does not stop the entire batch.
Who it's for
Operations teams who manage large-scale file transfers and need resilient, configuration-driven processes.
How teams use this
Run daily batch file transfers unattended
Schedule the automation to run at 8:00 AM every day, pull all active rules from the lookup table, and process every matching file on SFTP without manual monitoring or intervention.
Add new file transfer rules without code changes
Insert a new row into the Lookup Table with the SFTP path and filename pattern. The automation picks it up on the next run without modifying the workflow.
Recover from network failures automatically
When a file transfer fails due to a transient network issue, this automation retries up to 3 times before logging the error. Single failures do not halt the entire batch.
Alert teams when files fail permanently
Add a notification step after the logger so the team receives an alert when a file fails all retries. Include the filename and error details so someone can investigate.
How it works
- Start the daily file transfer. At 8:00 AM each day, this automation wakes up and begins the entire file transfer workflow for all active rules.
- Fetch active processing rules. Search the Lookup Table to retrieve all currently active file processing rules that define which files to transfer and where.
- Find files matching each rule. For each active rule, search the SFTP server for files that match the filename pattern and path specified in that rule's configuration.
- Process each file with automatic retry. Call the FileProcessor worker for each file found. If the transfer fails, automatically retry up to 3 times to handle transient network issues, then log any persistent failure and move to the next file.