Sync variant data to Snowflake every 5 minutes

Recipe ToolsMarketingDatabase

What it does

When the clock triggers every 5 minutes, this automation upserts batches of rows into the Snowflake variant table. It monitors each upsert for errors and halts if something goes wrong.

Who it's for

Data and analytics teams who need to keep variant data current in Snowflake without manual intervention.

How teams use this

Keep variant data synchronized daily

Run the upsert every 5 minutes so the variant table stays current with source data. The team sees fresh records without manual syncs or delays.

Alert the team when syncs fail

Add a notification step so the data team gets alerted when an error stops the upsert. That way failures are caught and fixed quickly by the right people.

Log all sync attempts for audit

Include detailed logging of each upsert attempt so the Finance team can audit what data changed and when. This supports compliance and troubleshooting across systems.

Filter rows before syncing to Snowflake

Add a condition to only upsert rows that meet certain criteria, such as records updated in the last hour. This reduces unnecessary writes and keeps the table lean.

How it works

  1. Start the sync on schedule. The automation runs on a 5-minute schedule to keep variant data synchronized with the source system.
  2. Upsert rows to the variant table. Upsert batches of rows into the STG_RELTIO_MDM_VARIANT table in Snowflake with error monitoring at each step to catch failures.
  3. Stop on error without retry. If an error occurs during any upsert, the automation stops and does not retry to prevent duplicate or corrupted data in Snowflake.