Share this on:
What You'll Learn
TL;DR
- Most Snowflake pipeline failures fall into seven patterns: tasks that never started, SQL errors, skipped child tasks, timeouts, empty or stale streams, failed loads and auto-suspended task graphs.
- Start with TASK_HISTORY to read the error, then work upstream. A child task with no history usually means a parent failed.
- Recreating a stale stream doesn't recover the changes it missed, so backfill the gap from the source table.
- Track recurring failures in ACCOUNT_USAGE.TASK_HISTORY and load problems in COPY_HISTORY.
- Add retries, root-task error notifications and a data-freshness alert, because suspended tasks and stale streams fail without any error.
Most Snowflake pipeline failures don't announce themselves.
A parent task fails and its children are quietly skipped. A stream goes stale. Snowpipe rejects one file out of a thousand. The first sign is often a dashboard that stops updating, reported by a business user rather than by your monitoring system.
The challenge isn’t just finding the failed component. It’s understanding why the pipeline stopped, whether any data was missed, and how to prevent the same issue from going unnoticed again.
This Snowflake troubleshooting guide walks through a four-step approach to diagnosing pipeline failures and improving operational reliability: identify common failure patterns, investigate task and stream errors, monitor execution history, and build an effective error-handling and alerting framework.
Identify common Snowflake pipeline failures
Most failures in Snowflake pipelines built with Tasks, Streams and Snowpipe fall into a handful of recurring patterns. Recognizing the symptoms helps narrow down the cause before you start changing configurations or rerunning jobs.
Seven common Snowflake pipeline failure patterns and where to look first
No execution in task history. A newly created task may still be suspended, or the owner role may lack required privileges.
SHOW TASKS
SHOW GRANTS TO ROLE
TASK_HISTORY
A failed execution with an error code and message.
TASK_HISTORY
(ERROR_CODE, ERROR_MESSAGE)
A child task may be skipped or may not have an expected execution, depending on where the failure occurred in the task graph. A skipped task is not necessarily a failed SQL execution.
Root and parent task history
A cancelled execution, potentially because it exceeded its configured timeout.
TASK_HISTORY
USER_TASK_TIMEOUT_MS
A task’s WHEN SYSTEM$STREAM_HAS_DATA condition is false, or the stream has become stale.
SHOW STREAMS
DESCRIBE STREAM
Files may be present in the stage, but expected rows are missing from the target table.
COPY_HISTORY
SYSTEM$PIPE_STATUS
Scheduled executions stop after repeated failures.
TASK_HISTORY
SHOW TASKS
A child task that never runs. In a task graph, a failed predecessor can prevent downstream tasks from being scheduled. The child may have no failed execution to investigate because it was never started. Looking only at the child can send troubleshooting in the wrong direction. Start with its parent and work backward through the graph.
Diagnose task and stream errors
Once you identify the failure pattern, investigate the underlying cause. Start with task execution and permissions, then check stream state and data availability.
Troubleshooting Snowflake Tasks
Work through these checks in order.
Confirm that the task is running
Run SHOW TASKS and inspect the task’s state. Snowflake creates tasks in a suspended state, so a newly created task won’t execute on its schedule until it is resumed.
For an individual task:
ALTER TASK orders_task RESUME;
For a task graph, you can enable the dependent tasks from the root task:
SELECT SYSTEM$TASK_DEPENDENTS_ENABLE('orders_root');
Check the owner role's privileges
The role that owns the task must have the required privileges to execute it and access its dependencies. Check for:
- EXECUTE TASK on the account to run tasks.
- EXECUTE MANAGED TASK on the account for serverless tasks.
- USAGE on the warehouse for tasks using a user-managed warehouse.
- USAGE on the database and schema containing the task.
- The required privileges on the objects referenced by the task's SQL.
- OWNERSHIP on the task itself.
Use SHOW GRANTS TO ROLE to review the role’s grants. The task’s SQL also needs privileges on the objects it reads and writes.
Revoking EXECUTE TASK stops every task that role owns, not just the one you’re investigating.
Read the execution error
Use the Information Schema TASK_HISTORY view to retrieve recent failed executions.
SELECT
name,
state,
error_code,
error_message,
scheduled_time
FROM TABLE(INFORMATION_SCHEMA.TASK_HISTORY(
SCHEDULED_TIME_RANGE_START =>
DATEADD('hour', -24, CURRENT_TIMESTAMP()),
SCHEDULED_TIME_RANGE_END =>
CURRENT_TIMESTAMP(),
ERROR_ONLY => TRUE
))
ORDER BY scheduled_time DESC;
The error code and message help distinguish SQL failures, permission issues and other execution problems.
Trace failures through the task graph
If a child task has no execution history, inspect its parent and root tasks. A failure earlier in the graph may have prevented the child from being scheduled.
Follow the dependency chain until you find the task where execution stopped.
Investigate timeouts
A task execution has a default timeout of one hour. If a run is cancelled with a timeout message, check whether the warehouse is undersized or the SQL is taking longer than expected.
You can adjust USER_TASK_TIMEOUT_MS to change the configured task timeout. However, increasing the limit won’t solve inefficient SQL or poorly performing queries. If the query does not parallelize effectively, the SQL itself may need to be optimized.
Troubleshooting Snowflake Streams
A task that doesn’t run isn’t necessarily a failed task. If it uses a condition such as WHEN SYSTEM$STREAM_HAS_DATA(...), it may simply have no change records to process.
Start by checking the stream:
SHOW STREAMS IN SCHEMA analytics.pipelines;
Pay attention to two columns:
Indicates whether Snowflake considers the stream stale.
Shows when the stream is predicted to become stale based on the source object’s data-retention settings. Consuming the stream’s change data in a DML statement moves this timestamp forward.
A stream becomes stale when its offset falls outside the retention period of its source object. Once stale, its unconsumed change records are no longer available.
Two situations deserve particular attention:
Stale stream
Recreating the stream lets it track new changes, but it starts from the current state of the source table. Changes during the gap are not recovered. Backfill the missing data from the source before resuming downstream processing.
Source table dropped or replaced
If Snowflake reports that the base table has been dropped and the stream cannot be read, recreate the stream against the correct source object. Then check dependent tasks and privileges on the replacement objects.
Restoring a stream does not automatically restore the data it missed. Recovery needs to account for both the stream and the underlying records.
Monitor Snowflake execution history
Finding an individual failure is useful. Tracking failures over time helps identify recurring problems before they affect downstream users.
Snowflake provides two main ways to review task execution history. They serve different purposes.
Information Schema vs. Account Usage task history
Last 7 days, plus upcoming scheduled executions
Last 365 days
Current execution information
Can lag by up to 45 minutes
Live troubleshooting
Historical trends and recurring failures
The Information Schema view applies its time-range and result-limit arguments before an outer WHERE filter. In an account with many tasks, the default 100 rows may not include the executions you need.
Specify the time range in the view arguments when investigating recent failures.
Identify recurring task failures
For longer-term monitoring, use the TASK_HISTORY view in SNOWFLAKE.ACCOUNT_USAGE to identify tasks that fail frequently.
The following query ranks tasks by their failure count over the last 30 days:
SELECT
name,
COUNT(*) AS runs,
COUNT_IF(state LIKE 'FAILED%') AS failures,
ROUND(
100 * COUNT_IF(state LIKE 'FAILED%') / COUNT(*),
1
) AS failure_pct
FROM snowflake.account_usage.task_history
WHERE scheduled_time >= DATEADD(
'day', -30, CURRENT_TIMESTAMP()
)
AND state IN (
'SUCCEEDED',
'FAILED',
'FAILED_AND_AUTO_SUSPENDED',
'CANCELLED'
)
GROUP BY name
ORDER BY failures DESC;
A task that fails once in 500 runs presents a different operational concern from one that fails every fifth run. Repeated failures may point to upstream timing issues, inconsistent source data, warehouse sizing or inefficient SQL.
This is where execution history becomes more than a debugging tool. It helps teams identify which pipelines need attention and where reliability improvements will have the greatest impact.
Monitor data loads separately
Task history doesn’t tell the whole story. Snowpipe and COPY INTO load failures need to be investigated through load history.
Use the COPY_HISTORY view to check recent loading activity for the target table:
SELECT
file_name,
status,
first_error_message,
last_load_time
FROM TABLE(INFORMATION_SCHEMA.COPY_HISTORY(
TABLE_NAME => 'ORDERS_RAW',
START_TIME => DATEADD('hour', -24, CURRENT_TIMESTAMP())
))
WHERE status <> 'Loaded'
ORDER BY last_load_time DESC;
The STATUS column can show whether a file was loaded, failed, partially loaded or skipped. FIRST_ERROR_MESSAGE provides additional detail about the cause.
The Information Schema view covers the previous 14 days. For longer-term load history, use the relevant Account Usage view.
What if the expected file doesn't appear in the results?
It may never have reached the pipe. In that case, check the pipe directly:
SELECT SYSTEM$PIPE_STATUS(
'analytics.pipelines.orders_pipe'
);
The returned JSON includes useful fields such as:
Whether the pipe is running, paused or in another state that prevents normal ingestion.
How many files are waiting to be loaded.
The oldest queued file, when one exists.
When the most recent file was successfully loaded.
When the pipe last received a notification.
A pipe can be running while still having no files to process. Conversely, a paused or stalled pipe can leave files waiting in the queue.
If the expected file is absent from both load history and the pipe’s pending-file information, investigate the upstream storage location, file path and cloud notification configuration. Snowflake’s Snowpipe troubleshooting guide walks through the usual causes.
Once you’ve found files that were never loaded, ALTER PIPE ... REFRESH queues the files staged in the last 7 days. The pipe skips files its load history already records as loaded, so running it is safe. For older files, compare the storage location against COPY_HISTORY and run a manual COPY INTO for anything missing.
ALTER PIPE analytics.pipelines.orders_pipe REFRESH;
Build an error-handling and alerting framework
Execution history tells you what broke. An error-handling framework helps teams respond consistently and detect problems before they affect downstream systems.
A practical approach has four layers.
Absorb transient failures, stop runaway graphs
Know the moment a task graph fails
Run-level summaries and cleanup
Catch the pipelines that go quiet
Layer 1: Configure automatic retries and failure thresholds
Transient issues don’t always require manual intervention. Snowflake task graphs support automatic retries, while failure thresholds can prevent a persistently failing graph from running indefinitely. For example:
ALTER TASK orders_root SET
TASK_AUTO_RETRY_ATTEMPTS = 2,
SUSPEND_TASK_AFTER_NUM_FAILURES = 3;
In this example:
- Snowflake retries a failed task graph up to two times.
- If the graph continues to fail across three consecutive graph runs, the root task is suspended.
The default suspension threshold is 10 consecutive failures. Adjust it based on the pipeline’s criticality and recovery requirements.
Retries are useful for transient failures, but they should not replace root-cause analysis. Confirm that the operation is safe to repeat and won’t create duplicate records or inconsistent downstream data.
Layer 2: Configure task error notifications
Task error notifications help teams know when a task graph fails without constantly checking execution history.
Create a notification integration for the supported cloud notification service, such as AWS SNS, Google Cloud Pub/Sub or Azure Event Grid. Then associate it with the root task. Snowflake documents the setup in its guide to task error notifications.
ALTER TASK orders_root
SET ERROR_INTEGRATION = pipeline_errors_int;
For a task graph, configure the integration on the root task. A failure in any child task is sent through the root task’s integration. The notification payload identifies the failed task and its error, and teams can parse it and forward it to their incident-management or messaging systems.
Automatic retries can generate notifications for individual failed attempts. Deduplicate downstream notifications where necessary to avoid overwhelming on-call teams.
Layer 3: Use a finalizer task for run-level reporting
A finalizer task runs after the other tasks in a graph have completed or failed. This makes it useful for post-run activities such as cleanup, status summaries and notifications. For example:
CREATE TASK orders_finalizer
FINALIZE = orders_root
AS CALL notify_run_summary();
Here, notify_run_summary() stands for a stored procedure your team writes. It could collect execution details for the graph run, summarize the outcome and send a notification.
One catch: if the root task itself is skipped, for example because the previous run overlapped, the finalizer does not start. A finalizer does not replace independent monitoring for runs that never begin.
Layer 4: Alert when the pipeline stops producing data
Some of the most difficult pipeline problems don’t generate an execution error. A task may be suspended. A stream may have become stale. An upstream source may have stopped sending data. The pipeline simply becomes quiet.
A data-freshness alert catches this by checking when the target table was last updated. First, create an email notification integration:
CREATE NOTIFICATION INTEGRATION pipeline_email_int
TYPE = EMAIL
ENABLED = TRUE
ALLOWED_RECIPIENTS = ('data-oncall@example.com');
Replace the example address with an eligible, verified recipient for your Snowflake account. Then create an alert that checks the latest load timestamp:
CREATE OR REPLACE ALERT orders_stale
WAREHOUSE = alert_wh
SCHEDULE = '30 MINUTE'
IF (
EXISTS (
SELECT 1
FROM analytics.pipelines.orders_final
HAVING
MAX(loaded_at) IS NULL
OR MAX(loaded_at) < DATEADD(
'hour', -2, CURRENT_TIMESTAMP()
)
)
)
THEN
CALL SYSTEM$SEND_EMAIL(
'pipeline_email_int',
'data-oncall@example.com',
'Orders pipeline is stale',
'No new rows in orders_final for over 2 hours.'
);
ALTER ALERT orders_stale RESUME;
In this example, orders_final, loaded_at and alert_wh are placeholders. Use your own target table, its load-timestamp column and a warehouse the alert can run on.
The IS NULL condition matters: without it, an empty target table would not trigger the alert. Also remember that Snowflake alerts are created suspended, so the RESUME is required.
Match the freshness window to the pipeline’s actual schedule. Two hours may suit a frequently refreshed table but will generate false alarms for a pipeline designed to run once a day. An alert that fires every weekend because no data is expected only trains teams to ignore it.
The move toward AI-assisted pipeline operations
Snowflake’s own data team has built an agent that investigates monitored pipeline failures, tests a proposed fix and opens a pull request for a person to review. A person still decides what ships.
Average time reported in Snowflake’s October 2026 post, measured over five months across the pipelines their internal team manages.
That is Snowflake’s internal tooling, not a feature every customer can switch on today. But it points to a broader direction for data engineering: moving beyond alerting and manual investigation toward more automated diagnosis and remediation.
For enterprise teams, the opportunity is not simply to detect failures faster. It is to reduce the time between identifying a problem and resolving it, while retaining the testing, validation and human oversight required before changes reach production.
It only works on pipelines that are already observable: clear task dependencies, reliable execution history and alerts that fire. Everything in Steps 1 to 4 is groundwork for that, whether or not you ever add an agent.
Catch the quiet failures first
The failures that cost the most are rarely the ones that throw errors. They are the suspended task, the stale stream and the feed that stopped arriving, and none of them notifies anyone on its own.
Start with the freshness alert from Step 4 on your most business-critical table, then add retries and error notifications around it.
How LumenData can help
LumenData helps enterprises design, build and run Snowflake data pipelines that hold up in production. As a Snowflake partner, our data engineering team works alongside yours on pipeline design, data quality checks, monitoring and alerting, and recovery procedures, so a failure is caught by your team before your business users find it.
If you’re dealing with failed loads, stale data or alerts nobody trusts, get in touch.
Frequently asked questions
How do I get alerts when a Snowflake task fails?
Create a notification integration for AWS SNS, Google Cloud Pub/Sub or Azure Event Grid, then set it as the ERROR_INTEGRATION on the root task. A failure in any child task in the graph is sent through the root task’s integration. Pair it with a data-freshness alert so you also hear about pipelines that stop without raising an error.
How do I retry failed Snowflake tasks automatically?
Set TASK_AUTO_RETRY_ATTEMPTS on the root task so Snowflake retries a failed task graph, and use SUSPEND_TASK_AFTER_NUM_FAILURES to stop a graph that keeps failing. Only rely on retries when the operation is safe to repeat and won’t create duplicate or inconsistent data.
Why was my Snowflake task suspended automatically?
The task graph most likely reached its failure threshold. By default, Snowflake suspends the root task after 10 consecutive failed runs, and TASK_HISTORY shows the state FAILED_AND_AUTO_SUSPENDED. Fix the underlying error first, then resume the task with ALTER TASK … RESUME.
How do I troubleshoot a failed task in Snowflake?
Query INFORMATION_SCHEMA.TASK_HISTORY with ERROR_ONLY => TRUE to read the error code and message. Then check the owner role’s privileges, trace the parent and root tasks in the graph, and look for timeouts or an undersized warehouse.
Why is my Snowflake task not running?
Common causes are a task that is still suspended (new tasks are created suspended), an owner role missing privileges, a failed parent task in the graph, or a WHEN SYSTEM$STREAM_HAS_DATA condition that is false because the stream is empty or stale.
How do I view task errors and run history in Snowflake?
Use the Information Schema TASK_HISTORY table function for the last 7 days of current execution data, and SNOWFLAKE.ACCOUNT_USAGE.TASK_HISTORY for up to 365 days of history (with up to 45 minutes of latency). Task run history is also available in Snowsight.


