A Fabric pipeline failed overnight: find the cause, rerun safely
Open the failed run in the Monitoring hub and read the error of the failed activity, not the pipeline summary. Sort it: auth, capacity, dependency, code or data. Retry only capacity and dependency errors, with Increasing Delay. Rerun from the failed activity once the cause is fixed. Add failure notifications to the schedule so you hear about it first.
Data engineers · ·
The problem
A scheduled pipeline failed while nobody was watching. The summary says “Failed” and nothing more. You need to know which activity broke, what the error says, whether it is worth a retry, and how to rerun without making things worse. This Pattern is for data engineers who are on call for Fabric pipelines.
Steps
The triage in one picture. Only two of the six classes are worth a retry.
None of the Fabric steps below were run for this article. They follow Microsoft’s documentation, checked on 2026-11-29.
-
Find the failed run. In the Data Factory or Data Engineering experience, select Monitoring hub. Use the Filter pane to filter by Status, Start time, Submitter or Location. The newer Monitor hub (preview) has a Job runs page where you filter the list by failed status. Both are described in the sources below.
-
Open the run and read the activity, not the pipeline. Select the run name. The run detail view shows the pipeline diagram, run ID, status, errors and activity runs. Filter the activity list by status, and use the input and output links for the failed activity. Note three fields: error code, message and failure type. The pipeline-level line only says that something failed.
-
Sort the error. Use the table below. It is a starting point, not a Microsoft list. The classes and word lists are this Pattern’s own heuristics, tried only on invented examples.
Class Typical words in the error Retry? First check auth 401, 403, unauthorized, token, expired, permission No Connection credentials, token expiry, the identity’s permissions capacity 429, throttled, too many requests, capacity Yes, with back-off Capacity utilisation at the failure time dependency 502, 503, 504, timed out, could not connect Yes Was the other system reachable then? code syntax, invalid expression, parameter, traceback No The failing query, expression or parameter data schema, column does not exist, conversion failed, null No Input compared with the last good run A Fail activity is always a deliberate stop. Microsoft describes it for data validation, business rules and dependency checks. Its message and error code are yours, so look at the check placed in front of it.
-
Decide on a retry. Retry only what can fix itself. In an activity’s General tab, select Enable retries. Retry takes 1 to 1000 attempts and defaults to 1. Retry interval type is Fixed (default 30 seconds) or Increasing Delay. Without retry conditions an activity retries on every failure, an expired password included.
Increasing Delay picks a random wait inside a range that doubles each time and stops growing at Max retry interval. With the defaults (30 s and 3600 s) the ranges are:
retry 1: 0-30s retry 2: 30-60s retry 3: 60-120s retry 4: 120-240s retry 5: 240-480s retry 6: 480-960s retry 7: 960-1920s later retries: the range keeps doubling, never above Max retry intervalThese ranges came from the formula on the Learn page, calculated by the project below. They are arithmetic, not a measured Fabric run. The retry interval fields do not accept dynamic expressions.
-
Fix the cause, then rerun from the failed activity. In the run detail view, select Rerun. The legacy hub offers the entire pipeline, start from the failed activity, or start from a selected activity. Starting from the failed activity does not repeat the activities before it. Make sure the activity is safe to run twice; for loads, see Pattern 06.
-
Get the same facts from the API. Both calls are copied from Microsoft’s pages. Replace the placeholders and send a bearer token.
GET https://api.fabric.microsoft.com/v1/workspaces/<workspaceId>/items/<pipelineId>/jobs/instancesEach job instance has
status(NotStarted,InProgress,Completed,Failed,CancelledorDeduped),invokeType,startTimeUtc,endTimeUtcand, when it failed,failureReasonwitherrorCodeandmessage. Most items keep the 100 most recent completed entries.For the error of each activity, the REST capabilities page documents this call.
<jobId>is the job instanceidfrom the call above.POST https://api.fabric.microsoft.com/v1/workspaces/<workspaceId>/datapipelines/pipelineruns/<jobId>/queryactivityruns { "filters": [], "orderBy": [{"orderBy": "ActivityRunStart", "order": "DESC"}], "lastUpdatedAfter": "2026-11-28T00:00:00Z", "lastUpdatedBefore": "2026-11-29T00:00:00Z" }The response is a list. Each item has
activityName,activityType,status,durationInMsand anerrorobject witherrorCode,message,failureType,targetanddetails. -
Prevent the next one. Add users or groups under Failure notifications in the schedule. Put a Fail activity in the True branch of an If Condition to stop on bad data with a clear message. Set retries only where step 3 said retry.
The project
pipeline-error-triage is a small Python script with synthetic data. No Fabric tenant is needed. It reads saved JSON in the two shapes from step 6, sorts each failed activity into the classes above, says whether a retry makes sense, and prints the back-off ranges. It has 23 tests.
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python triage.py && python -m pytest -v
What the recorded run showed (full output in RUN_LOG.txt, inside the project):
- 9 sample activity runs read, 8 failed. The throttled copy (429) was classed capacity with retry yes, the expired token auth with retry no, the missing column data with retry no, the connection timeout dependency with retry yes, the syntax error code with retry no.
- The Fail activity was classed data with retry no. An empty error was unknown with retry no. An unrecognised system error was unknown with retry maybe.
- 4 sample job instances read, 2 failed, with their durations.
- The back-off table above, and 23 tests passing.
The samples use the field names from Microsoft’s documentation, but the error texts were invented for the project. The run shows that the code does what the rules say. It does not show that the rules match real Fabric errors.
Real output of python triage.py and the test summary, Python 3.14.8, 2026-11-29. Input is synthetic; the middle of the output is cut.
Copy this prompt
Use this to triage a failed Fabric activity when its error message leaves you guessing. Paste the activity details into your assistant’s chat after removing credentials and customer data. The assistant should suggest a likely cause, one check you can make in Fabric and whether a retry is warranted.
A Microsoft Fabric pipeline activity failed. Here are its fields:
activityName: <name>, activityType: <type>, status: Failed,
durationInMs: <number>, error.errorCode: <code>, error.message: <message>,
error.failureType: <failure type>, invoked by: <schedule | manual>.
Classify the error as auth, capacity, dependency, code, data or unknown.
Give one hypothesis and the single check that would confirm it.
Say whether a retry makes sense and why. Say what to change so it does not repeat.
Do not guess. If the error is not enough, list the extra facts you need.
Check the answer for three things: one class from the list, a check you can do in the Monitoring hub, and a clear yes or no on retrying.
Test result
The script read nine synthetic activity runs and identified eight failures. It distinguished a capacity issue worth retrying from an authentication failure that needed access fixed.
Limits
- Notifications cover scheduled runs only. A manual or API-started run sends nothing.
- A manual success proves nothing about the schedule. Schedule ownership is separate from item ownership. Taking over an item does not transfer its schedules, and a successful on-demand run does not show that the schedule can run.
- Retry conditions wait first. The retry interval runs before the condition is evaluated. A one-hour interval waits one hour even if the condition then says no retry. Conditional retries are supported for specific activity types, including Copy data, Notebook, Dataflow and Stored procedure.
- Retrying a deterministic error wastes time. Auth, code and data errors fail the same way each time.
- Schedules switch themselves off. After repeated consecutive failures, typically 10, a schedule is auto-disabled and needs a manual restart. Schedules also expire if their owner does not sign in for 90 consecutive days.
- The API history is short. List Item Job Instances keeps the 100 most recent completed entries for most items.
- The activity-run call is documented only in an example. It sits on the REST capabilities page. A reference page for it could not be opened, so check the current request shape before you automate it.
- The classifier is a heuristic. It reads words in the error text. Real Fabric messages may differ, and anything unrecognised comes out as unknown.
Sources
- Activity retries in Microsoft Fabric Data Factory, accessed 2026-11-29
- Monitor pipeline runs in the legacy Monitoring hub, accessed 2026-11-29
- Monitor pipeline runs in the new Monitoring hub (preview), accessed 2026-11-29
- Monitor job runs in the Monitor hub, accessed 2026-11-29
- What is the Monitor hub?, accessed 2026-11-29
- Job scheduler in Microsoft Fabric, accessed 2026-11-29
- REST API capabilities for pipelines in Fabric Data Factory, accessed 2026-11-29
- Job Scheduler - List Item Job Instances, accessed 2026-11-29
- Use the Fail activity to cause pipeline execution to fail with a customized error message and error code, accessed 2026-11-29
- What’s new in Microsoft Fabric, accessed 2026-11-29
Author
Rodrigo Lombana Reina, data engineer. Personal opinions. Checked against the documentation on 2026-11-29.
Questions
How do I find out why a Fabric pipeline failed?
Open the Monitoring hub, filter by failed status and open the run. The run detail view shows the pipeline diagram, run ID, status, errors and the list of activity runs. Open the failed activity and read its error code, message and failure type. The pipeline-level error is a summary; the activity's own error is what to act on. See the Steps section.
Can I rerun only the failed activity in a Fabric pipeline?
Yes. In the Monitoring hub, open the run's detail view and select Rerun. The legacy hub lets you rerun the entire pipeline, start from the failed activity, or start from a selected activity. The new hub (preview) offers the entire pipeline, only failed activities, or selected activities. Rerun only after the cause is fixed and the activity is safe to repeat.
Should I set retries on a Fabric pipeline activity?
Only for errors that go away on their own, such as throttling or a brief outage. In an activity's General tab, Retry takes 1 to 1000 attempts and defaults to 1. By default an activity retries on any failure, so a wrong password is retried too. Retry conditions can limit retries to chosen error codes, but they are in preview.
How does exponential back-off work for Fabric pipeline retries?
Set Retry interval type to Increasing Delay. Before each retry the engine picks a random wait inside a range that doubles each time, capped at Max retry interval. With the defaults of 30 and 3600 seconds, retry 1 waits 0 to 30 seconds, the range doubles each time, and the upper end never exceeds 3600 seconds. Learn lists this as generally available since September 2026.
How do I get an email when a scheduled Fabric pipeline fails?
Open the item's schedule and add users or groups under Failure notifications. You need at least the Contributor role or Write permission on the item. Emails go only to Microsoft Entra users and groups, and only for scheduled runs, never manual ones. The email has the item, submitter, error details, UTC time and a link to the monitoring hub.
Can I list failed Fabric pipeline runs with the REST API?
Yes. GET /v1/workspaces/{workspaceId}/items/{itemId}/jobs/instances returns job instances with status, startTimeUtc, endTimeUtc and, for a failed one, failureReason. Most items keep only the 100 most recent completed entries. For activity-level errors, the documented POST to queryactivityruns returns each activity's error. Both calls are in the Steps section; neither was run here.
Why did my Fabric pipeline schedule stop running?
After repeated consecutive failures, typically 10 though it varies by item, the platform puts the schedule in an auto-disabled state. Restart it in the UI, through the API or through CI/CD. A schedule also expires if its owner does not sign in to Fabric for 90 consecutive days, and taking over an item does not move schedule ownership.
