Configure and test selective retries in Fabric
A practical acceptance plan for transient failures, permanent errors and safe repeated writes.

- 01
Decide which failure you want to recover from
A pipeline that succeeds on its second attempt is not automatically reliable. You need to understand why the first attempt failed, what the next attempt repeats and whether the output remains correct. Start with the failure you intend to handle before increasing the retry count.
Consider a fictional daily delivery of order lines. Its source sometimes becomes briefly overloaded. On other days, a credential expires or a required column disappears. Our design goal is to bridge the temporary interruption while sending failures that require a change to a named owner.
Situation in your workload Proposed treatment Investigate first Temporary source throttling A limited number of additional attempts The error Fabric actually exposes Brief dependency interruption Test recovery with a waiting interval Whether repeating the operation is safe Missing permissions or expired credentials Ask the owner to intervene Whether the correct identity is used Invalid input or schema mismatch Repair the data or contract Which records cause the problem This classification is TechExplained guidance. An error code is a clue, not proof that a failure will resolve itself. Agree with the source owner which failures are transient and when another attempt would simply increase pressure.
Decisionwrite one recovery objective for each activity. For example: bridge temporary source throttling without duplicating order lines, within the agreed delivery window. - 02
Create a test pipeline with verifiable output
Work in a development workspace with test data and a destination you can clean up. Copy the relevant dependencies as well as the activity: connections, parameters and downstream steps. Confirm that no parameter still points to production.
Before the first run, define a correct delivery. In our example, that means the expected number of unique order lines, matching totals and a recognizable delivery key. Use your existing data-quality check or an independent query against the test destination.
Check Example for the experiment Owner Data engineering team with a named contact Input Bounded test delivery with a fixed key Expected output Record count and control total agreed in advance Recovery budget Total duration agreed with the consumer Rollback Previous activity settings and a clean test destination Evidence Run ID, error details, settings and output checks Choose a controlled way to make the dependency fail and recover. That could be a test service or a fixture maintained by your team. Do not disrupt a shared source. Fault injection depends on the connector; this guide does not assume every activity exposes an HTTP status unchanged.
Resultyou have an experiment with a known expected result and a way to verify it independently of the activity status. - 03
Configure retries on the activity
Open the test pipeline, select the activity and go to General. Select Enable retries and configure Retry. Retry settings belong to the activity, so inspect each activity you intend to change. See the official activity overview.
For this experiment, start with two retries. That is our test choice, not a universal production recommendation. A small count makes the complete failure path easier to follow. Increase it only when measurements show the delivery budget and source load allow it.
Distinguish the initial execution from additional attempts in your test record. Record both the configured retry count and the attempts observed in the run. Otherwise, someone may later infer total source load from the number shown in one settings field.
Change only the retry policy initially. If you also change the source query, batch size and destination, you will not know which change caused a different duration.
Pitfallretries do not fix an incorrect password, a missing permission or a broken data contract. They can delay the point at which someone intervenes. - 04
Choose a waiting pattern that fits the recovery budget
Under Retry interval type, select Fixed or Increasing Delay. Fixed uses a constant interval. Increasing Delay selects random intervals from exponentially growing ranges, with a configured upper bound. Interval fields accept static integers rather than dynamic expressions. See Microsoft Learn on activity retries.
The following settings provide a starting comparison. All numbers are illustrative TechExplained test values. Adapt them to your source and delivery window.
Variant Retries Starting interval Maximum interval Comparison objective A 2 Fixed, 30 seconds Not applicable Simple reference run B 2 Increasing Delay, 30 seconds 120 seconds Behavior under temporary source pressure Measure the complete pipeline, including failed executions and subsequent validation. A maximum waiting interval does not automatically bound the duration of the entire workload. Account for each attempt's execution time and other time limits.
Because the increasing interval includes randomness, do not expect exactly the same timeline in every test. Compare several runs against the agreed recovery budget. One fast run is insufficient evidence for applying the policy broadly.
Decisionchoose the pattern using measured recovery and acceptable source load. A longer wait does not replace an agreement with the source owner. - 05
Add a selective retry condition
Retry conditions is in preview. Conditions can match Error code, Error message or Failure type, combined with And/Or. Activity support and connector-specific error properties differ. Check the documentation and your actual activity.
The official throttling example uses Error code, Contains, 429. Apply it only when your observed test error supports that match. If Fabric wraps the original status in a connector code, understand the value you are actually comparing.
Test a positive and a negative case. Make the intended transient failure match, and make a failure requiring manual repair fail the condition. Also check whether an overly broad text match accidentally admits an unrelated error. Retain the relevant error details without credentials or sensitive records.
An important behavior is that the retry interval elapses before the condition is evaluated. A failure that does not match can still wait first. A selective condition therefore does not mean every permanent error immediately reaches the failure handler.
Importantinclude that waiting period in your operating instructions. An operator should know whether the pipeline is still waiting or already requires intervention. - 06
Make repeated execution safe for the destination
Retries are useful only when a partly completed activity can run again safely. Suppose the test delivery writes some order lines before losing its connection. A second attempt that appends the same lines may succeed technically while producing incorrect data.
Choose an explicit write contract. The appropriate approach depends on your destination and operations. These are design options, not capabilities automatically guaranteed by a connector.
Design choice Intended outcome What to test Delivery key and deduplication Recognize a repeated delivery Repeating it does not increase the final count Staging with controlled publication Keep partial output away from consumers Publish only after validation Repeatable update by business key Update existing records deliberately A retry changes the correct records Isolated output per execution Keep attempts separate Consumers use only accepted output Include external side effects. A service may already have processed a request while Fabric sees only a timeout. In that situation, discuss a repeatable request identity or an explicit status check with the service owner.
Decisionaccept the retry policy only after output checks pass following a partial failure. A green run does not provide equivalent evidence. - 07
Run the failure matrix and retain evidence
Do not test only successful recovery. A run that cannot recover is how you discover whether the owner receives useful information in time.
Test Setup Acceptance criterion No failure Keep the dependency available Correct output without unnecessary recovery attempts Transient failure Let the test dependency recover Run recovers and output is correct Persistent matching failure Keep the failure active Limited retry budget is exhausted and failure path is clear Non-matching failure Use a different observed error Filter behavior and the preceding wait are explained Partial write Fail after producing partial output No duplicate or incomplete publication Manual restart Execute the same test delivery again The recovery contract still holds For every run, retain input identity, settings, activity details, relevant timestamps and output validation. Record deviations immediately. If a test behaves differently than expected, revise the explanation or setup and rerun the case.
This matrix is a proposed acceptance plan. These tests have not been executed against your Fabric environment and establish neither production availability nor performance gains.
Resultthe team can explain which failures recover automatically, how long recovery may take and when a person must intervene. - 08
Roll out narrowly and retain a rollback path
Promote one bounded pipeline through your existing release process. Include the retry policy, observed error codes and write contract in the change. Give operations concise instructions: where to find the run, when waiting is useful and who repairs a permanent failure.
Define rollback triggers beforehand. Examples include missed delivery windows, unexpected extra source load or output discrepancies. Restoring a retry configuration does not undo previous writes; destination recovery is a separate operation.
Agree on a review date. Inspect how often retries were needed, which failures persisted and whether consumers received their data on time. An unreviewed recovery policy may hide a recurring source problem.
Best practicekeep a short decision record with the pipeline. Include its owner, rationale, error criteria, evidence and rollback path so that future teams do not copy the policy without its context.
Common mistakes
| Mistake | Why it hurts | Better |
|---|---|---|
| Retrying every failure | Permanent repair is delayed | Observe errors and choose explicit criteria |
| Checking only run status | Duplicates remain invisible | Validate records, keys and totals |
| Copying another connector's error code | The match does not describe your failure | Use details from your own test activity |
| Choosing a large interval as a safety margin | Non-matching failures also wait first | Measure the complete duration |
| Copying settings everywhere | Source load and write behavior differ | Evaluate each activity and destination |
| Treating configuration rollback as data recovery | Earlier writes remain | Plan data recovery separately |
What to do next
Include the settings in your release process using CI/CD for Microsoft Fabric. To review the workspace and capacity foundation first, start with setting up Microsoft Fabric. The interaction between waiting and conditions also appears in Known Limitations.
Official sources
Reviewed on 3 November 2026: Microsoft Learn: activity retries and activity overview. The fictional workload, test values, write patterns and acceptance criteria are TechExplained guidance.
The process at a glance
Click a step for its key decision
Decide which failure you want to recover from
write one recovery objective for each activity. For example: bridge temporary source throttling without duplicating order lines, within the agreed delivery window.
Read next
Related use cases
Related best practices
