Import leads from SFTP CSV into Marketo daily
Recipe ToolsMarketingWorkatoFile TransferData ParserUtilities
What it does
When the scheduled time arrives each day, this automation downloads a CSV file from SFTP and parses the lead records. It upserts them into Marketo, and if an error occurs, logs it and sends an email alert instead of retrying.
Who it's for
Marketing operations teams who load lead batches from SFTP into Marketo on a daily schedule with error visibility.
Apps used
How teams use this
Load daily bad actor email updates
Import the daily CSV of bad actor emails from SFTP into Marketo on schedule so the lead database stays current with suppression records. No manual download or upload is needed.
Monitor import failures in real time
When an error occurs during the CSV parse or lead upsert, the automation logs the issue and sends an email alert to the team. The batch does not retry, so the error is visible immediately.
Extend to multiple CSV sources
Add a condition to check the file name so different CSV files from SFTP can trigger different lead list assignments in Marketo. Only the file name condition and list mapping per source need to be added.
Route errors to a Slack channel
Replace the email alert with a Slack message so the team sees import failures in their workflow channel instead of email. The error log step stays the same and only the notification changes.
How it works
- Run the import at 10 AM PT daily. The automation starts every day at 10:00 AM PT, after the Bad Actor Email Delta CSV file is available on the SFTP server by 9 AM PT.
- Download the CSV file from SFTP. Retrieve the Bad_Actor_Email_Delta.csv file from the SFTP server at /eloqua/from_sbg/ so the lead records are ready to parse.
- Parse the CSV into batches. Convert the CSV file into structured batch records so each lead can be processed and loaded into Marketo with the correct field mapping.
- Upsert leads and add to list. For each batch, create or update leads in Marketo and add them to the lead list. If an error occurs, log it and send an email alert instead of retrying the batch.