reference · azure data factory and fabric
How to rerun a Data Factory pipeline from the failed activity
In Azure Data Factory, open Monitor, select the name of the failed pipeline run, and choose Rerun from failed activity. In Fabric, open the run's detail view, select Rerun, and choose to rerun from the failed activity. Both are done by hand, one run at a time. Neither platform has a setting that reruns from the failure on its own. Data Factory's API can do it if you write the code that calls it.
- In ADF: Monitor, then "Rerun from failed activity"
- By API: Create Run with
isRecovery,referencePipelineRunIdandstartFromFailure - Automatic: no built-in option on either platform
- Run data kept: 45 days in ADF
Every statement below was read on Microsoft's own pages on 2026-11-25, with the source linked under each section. Several things you would want to know before relying on a rerun are not documented at all. Those are listed near the end, so you can test them on your own estate before a bad night tests them for you.
How do you rerun from the failed activity in Azure Data Factory?
From the activity runs view of the failed run, in Monitor. The steps, using Microsoft's labels:
- In the Data Factory user interface (Data Factory Studio), select the Monitor icon in the left sidebar.
- In the pipeline runs list, select the name of the failed pipeline run. That opens its activity runs.
- Select Rerun from failed activity. Microsoft offers it when an activity "fails, times out, or is canceled".
Three other reruns sit beside it:
- Rerun runs the whole pipeline from the start. Hover over the run in the list to find it, or select several runs and rerun them together.
- Rerun from activity starts at an activity you select in the activity runs view.
- New parameters reruns with changed parameter values. Data Factory treats that as a new pipeline run, so it does not appear in the original run's rerun history.
The Run column in Monitor then labels each attempt as Original, Rerun,
or Rerun (Latest), and the rerun history shows them as one group. To
view Monitor at all, the built-in Reader role on the factory is enough.
Microsoft does not name the role a rerun needs. A rerun creates a
pipeline run, Azure lists that as its own permission
(pipelines/createrun/action), and the built-in Data
Factory Contributor role includes it. So in practice the person
pressing the button needs more than read access.
Source: visually monitor Azure Data Factory and roles and permissions, built-in roles and Azure permissions for Data Factory. The line about the role a rerun needs is our reading of those role definitions.
What runs again, and what is skipped?
The failed activity and what comes after it run. A Microsoft employee answering on Microsoft Q&A says the rerun will "skip the activities that have already completed successfully". Containers are the exception, and Microsoft publishes this list for them:
| Activity | On a rerun |
|---|---|
| Wait, Set Variable, Filter | Behaves as before. |
| ForEach | Always loops over the items it receives. Inner activities may still be skipped. |
| Until | Evaluates its expression and loops until the condition is met. Inner activities may still be skipped. |
| If Condition and Switch | Conditions are always evaluated, and so are all inner activities. Inner activities may still be skipped, but activities such as Execute Pipeline run again. |
| Execute Pipeline | The child pipeline is triggered, but all activities in the child may still be skipped. |
Microsoft says inner activities are skipped "based on the rerun rules" and never defines those rules. So you can't tell from the documentation whether a ForEach that finished 40 of 50 iterations reruns ten of them or all fifty.
The Copy activity has one documented extra. When the failed activity copies files as-is in binary format between file-based stores, and is set to preserve the folder and file hierarchy, the rerun resumes that copy. Resume works file by file, so the file that was in progress is copied again. For every other kind of copy, Microsoft says the rerun "starts from the beginning", and it warns against changing the copy settings between the two attempts.
Source: rerun pipelines and activities, the Microsoft Q&A answer and Copy activity, resume from last failed run.
What happens to child pipelines?
The parent starts the child pipeline again, and Microsoft says the child's activities "may still be skipped". The documentation does not say whether the child resumes at its own failed activity or starts from its first one. The Execute Pipeline page says nothing about reruns.
This matters most for a master pipeline, where a parent calls children that call children. If the failure sits three levels down, how much of the tree runs twice is something you have to find out by testing. Fail a child on purpose in a non-production factory, rerun the parent from the failed activity, and read the child's activity runs. The master pipeline problem covers why this shape is so common.
Can Data Factory rerun from the failed activity automatically?
No. The Microsoft pages we read describe rerun from the failed activity as something a person does in Monitor or a program does through the API. Three settings you control are automatic, and none of them is a rerun from the failure:
- Activity retry. An execution activity can retry itself. The default is 0 retries, with 30 seconds between attempts when you turn it on, and the interval can be set from 30 seconds to 24 hours. Container activities such as ForEach, Until and If Condition have no retry policy.
- Tumbling window trigger retry. The trigger can run its pipeline again with the same parameters. Its retry count defaults to 0 and its interval to 30 seconds. Microsoft's pages differ on which failures it covers, and none says the retry resumes at the failed activity.
- Schedule triggers have no retry at all.
The service also recovers on its own from some faults. Microsoft describes an internal recovery process that checks runs every hour, and says Data Factory "might rerun pipeline activities" after a transient fault. You don't configure either, and neither is a rerun from the failed activity of your choosing.
To automate the real thing you call the Create Run API yourself, from a Logic App, a function, or another pipeline. Microsoft's troubleshooting guide suggests a Logic App that queries for failed pipelines every 5 minutes and reports them to a ticketing system. Calling Create Run from it is your addition. These are the four parameters, in Microsoft's words:
| Parameter | What Microsoft says it does |
|---|---|
isRecovery | Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped under the same groupId. |
referencePipelineRunId | The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. |
startFromFailure | In recovery mode, if set to true, the rerun will start from failed activities. The property will be used only if startActivityName is not specified. |
startActivityName | In recovery mode, the rerun will start from this activity. If not specified, all activities will run. |
PowerShell's Invoke-AzDataFactoryV2Pipeline takes the same
four as -IsRecovery, -ReferencePipelineRunId,
-StartFromFailure and -StartActivityName, and
the Azure CLI's az datafactory pipeline create-run has
matching flags. A plain Create Run call with none of them starts a new
run of every activity.
Source: Pipelines, Create Run, Invoke-AzDataFactoryV2Pipeline, activity policy, the pipeline schema for the retry interval range, tumbling window triggers, trigger type comparison, the pipeline troubleshooting guide and reliability in Azure Data Factory.
How does it work in Fabric Data Factory?
The same idea, with less of it documented. In the Monitoring hub, select a pipeline run's name to open its detail view, then select Rerun. Microsoft says you can "rerun the entire pipeline, start from the failed activity, or start from a selected activity". Its screenshots show the three menu items as Rerun entire data pipeline, Rerun from selected activity and Rerun from failed activity. A Retry icon on the run list retries a completed run.
- Two hubs. Fabric has a legacy Monitoring hub and a new one in preview, which you switch to yourself with Try it now. The new hub's page words the options differently, as rerunning "the entire pipeline, only failed activities, or selected activities", while its screenshot shows the same three menu items as the legacy hub. Microsoft does not say whether the behavior differs.
- Containers and child pipelines. No Fabric page says how ForEach, If Condition or an invoked pipeline behaves on a rerun. Don't assume Data Factory's list above applies.
- Retries. Off until you select Enable retries on an activity. Then 1 to 1,000 attempts, with a fixed interval or an increasing delay that backs off up to a maximum you set. Microsoft's what's-new page lists that as "Pipeline retry backoff", generally available since September 2026. Retry conditions, which retry only on errors you name, are in preview.
- API. Fabric's pipeline REST API can run, cancel and schedule a pipeline and query its activity runs. It documents no way to rerun from the failure.
Source: monitor pipeline runs in the legacy Monitoring hub, the new Monitoring hub (preview), activity retries, what's new in Microsoft Fabric and pipeline REST API capabilities.
How do the two platforms compare?
| Question | Azure Data Factory | Fabric Data Factory |
|---|---|---|
| Rerun from the failure, by hand | Yes. "Rerun from failed activity" in Monitor. | Yes. "Rerun" in the run detail view, then "Rerun from failed activity". |
| Rerun from an activity you choose | Yes. "Rerun from activity". | Yes, from the same Rerun menu. |
| Rerun from the failure, by API | Yes. Create Run with isRecovery, referencePipelineRunId and startFromFailure. | Not documented. |
| Rerun from the failure, automatically | No built-in setting. | No built-in setting. |
| Activity retries | Off by default (0). Fixed interval, 30 seconds to 24 hours. | Off until enabled. 1 to 1,000 attempts, fixed or increasing delay. |
| Retry only on certain errors | Not documented. | Retry conditions, in preview. |
| Run data kept | 45 days. | Not published for the Monitoring hub. |
The wider comparison of the two is in Fabric Data Factory vs Azure Data Factory.
What does Microsoft not document?
Five things, as of 2026-11-25. Each one decides how much you can trust a rerun, and each needs a test in your own factory.
- The rerun rules. Which inner activities of a ForEach, Until or If Condition are skipped, and which run again.
- What a rerun does after the pipeline has changed. Microsoft says every run pulls the latest published definition, and the API calls a rerun a new run. It does not say this of reruns by name, or what happens if the starting activity was renamed or removed in between.
- Where a child pipeline restarts. At its own failed activity, or at its first.
- Whether earlier outputs carry over. No page says that the outputs and variables of skipped activities are available to the activities that run.
- Fabric's retention. How long the Monitoring hub keeps a pipeline run that you might want to rerun.
When does the manual rerun stop being enough?
When failures are routine, when the estate is nested, or when the person with the right role is asleep. The rerun is one button, and it still needs someone to notice the failure, open Monitor, hold more than read access, and judge whether it is safe to run again. It happens per run, so six failed pipelines are six reruns.
The usual next step is to build recovery into the orchestration design itself, so that what already succeeded is recorded as data and a retry reads that record. That is the idea behind metadata-driven orchestration, which you can build yourself on either platform.
A disclosure. ETLMaestro sells an orchestration layer for Azure Data Factory and Fabric that works this way. It runs your existing pipelines and notebooks in phases, and when a process fails its automatic retry reruns only what failed and skips every process that already succeeded. Each schedule sets how many retries to make and how long to wait between them. How ETLMaestro works follows a run from start to retry.
Questions people ask next
Does a rerun from the failed activity run the activities that already succeeded?
Mostly not, with exceptions. A Microsoft employee answering on Microsoft Q&A says the rerun starts from the failed activity and skips the ones that completed successfully. The Monitor documentation lists the exceptions: conditions in If Condition and Switch are evaluated again, a ForEach or Until loops again, and an Execute Pipeline activity triggers its child pipeline again.
How long after a failure can you still rerun the run?
Microsoft does not give a deadline. Azure Data Factory stores pipeline run data for only 45 days, and a rerun refers to the original run, so we would plan on that as the outer limit. That is our inference; no Microsoft page states it. Fabric does not publish how long its Monitoring hub keeps pipeline runs.
Can a trigger rerun a failed pipeline on its own?
A tumbling window trigger can. Its retry policy runs the referenced pipeline again with the same parameters, as many times as you set. Microsoft does not say that this retry resumes at the failed activity. A schedule trigger has no retry.
Do you need to make activities safe to run twice?
Yes. Microsoft's reliability guidance for Azure Data Factory says pipeline activities should be idempotent, because the service might rerun them after a transient fault and that can create duplicate records. The same care applies to any rerun you start yourself.
Sources and verification
Written by the ETLMaestro team, who build orchestration on both platforms. Every statement about Microsoft's platforms was read on the live Microsoft page on 2026-11-25, and where Microsoft documents nothing, this page says so. It is re-checked every quarter, next on 2027-02-25, and the facts-verified date only moves when that check happens.
- Microsoft Learn: Visually monitor Azure Data Factory, rerun pipelines and activities
- Microsoft Learn: Data Factory REST API, Pipelines, Create Run
- Microsoft Learn: Invoke-AzDataFactoryV2Pipeline
- Microsoft Learn: az datafactory pipeline
- Microsoft Learn: Pipelines and activities, activity policy (retry defaults)
- Microsoft Learn: Data Factory REST API, Pipelines, Create Or Update (retry interval range)
- Microsoft Learn: Create a tumbling window trigger (retry policy)
- Microsoft Learn: Pipeline execution and triggers, trigger type comparison
- Microsoft Learn: Monitor Azure Data Factory (45 days of pipeline run data)
- Microsoft Learn: Roles and permissions for Azure Data Factory
- Microsoft Learn: Azure built-in roles for analytics (Data Factory Contributor)
- Microsoft Learn: Azure permissions for analytics (pipelines/createrun/action)
- Microsoft Learn: Apply DataOps to Azure Data Factory (which definition a run uses)
- Microsoft Learn: Copy activity, resume from last failed run
- Microsoft Learn: Reliability in Azure Data Factory (idempotent activities)
- Microsoft Learn: Troubleshoot pipeline orchestration and triggers
- Microsoft Q&A: how to automatically rerun a failed pipeline in ADF (reply from a Microsoft employee)
- Microsoft Learn: Monitor pipeline runs in the legacy Monitoring hub (Fabric)
- Microsoft Learn: Monitor pipeline runs in the new Monitoring hub, preview (Fabric)
- Microsoft Learn: Activity retries in Fabric
- Microsoft Learn: What's new in Microsoft Fabric
- Microsoft Learn: Fabric pipeline REST API capabilities
Spot something out of date? Send us a message and we'll check it against the source.