Monitor Tableau refresh tasks and log failures

Recipe ToolsMarketingDocument/FileSales EnablementCollaboration

What it does

When the daily 8 AM trigger runs, this automation lists all Tableau extract refresh tasks and reruns any that failed. If a task fails more than three times in a row, it logs the details in Google Sheets so someone can investigate.

Who it's for

Data and analytics teams who need Tableau reports to stay current and want visibility into refresh failures without manual checks.

How teams use this

Catch refresh failures before business hours

Run the check at 8 AM so failed tasks are retried and fixed before the team arrives. If a task still fails after three attempts, it is logged for investigation, keeping reports current.

Track recurring refresh issues over time

Log each repeated failure in Google Sheets to build a history of problem tasks. Add timestamp and error message fields so the team can analyze patterns and identify which datasets need optimization.

Alert ops teams to escalate stale data

Send a Slack message to an operations channel when a task is logged as repeatedly failed. Someone can then pause dependent reports or notify stakeholders of data delays.

Reduce manual refresh requests

Automate the retry logic so the team does not have to manually rerun tasks. Only tasks that fail three times in a row require human review, cutting down on routine operational work.

How it works

  1. Run every morning at 8 AM. This automation starts daily at 8 AM to check the status of all Tableau extract refresh tasks and identify any failures.
  2. List all extract refresh tasks. Retrieve the full list of Tableau extract refresh tasks and their current state to identify which ones have failed or need attention.
  3. Rerun each failed refresh task. For each task that shows a failed state, run the extract refresh task again in Tableau to attempt recovery without manual intervention.
  4. Log tasks that fail repeatedly. When a task fails more than three consecutive times, add a new row to the failed task sheet in Google Sheets with details for review.
  5. Notify the team in Slack. Send a Slack message to alert someone when tasks are logged in the failed task sheet so they can take corrective action.