Skip to main content
How-toLevel: Intermediate

Configure and test selective retries in Fabric

A practical acceptance plan for transient failures, permanent errors and safe repeated writes.

TechExplained 9 min readPublished: 3 November 2026Last updated: 3 November 2026
#fabric#pipelines#how-to
  1. 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 workloadProposed treatmentInvestigate first
    Temporary source throttlingA limited number of additional attemptsThe error Fabric actually exposes
    Brief dependency interruptionTest recovery with a waiting intervalWhether repeating the operation is safe
    Missing permissions or expired credentialsAsk the owner to interveneWhether the correct identity is used
    Invalid input or schema mismatchRepair the data or contractWhich 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.

    Decision
    write one recovery objective for each activity. For example: bridge temporary source throttling without duplicating order lines, within the agreed delivery window.
  2. 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.

    CheckExample for the experiment
    OwnerData engineering team with a named contact
    InputBounded test delivery with a fixed key
    Expected outputRecord count and control total agreed in advance
    Recovery budgetTotal duration agreed with the consumer
    RollbackPrevious activity settings and a clean test destination
    EvidenceRun 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.

    Result
    you have an experiment with a known expected result and a way to verify it independently of the activity status.
  3. 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.

    Pitfall
    retries do not fix an incorrect password, a missing permission or a broken data contract. They can delay the point at which someone intervenes.
  4. 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.

    VariantRetriesStarting intervalMaximum intervalComparison objective
    A2Fixed, 30 secondsNot applicableSimple reference run
    B2Increasing Delay, 30 seconds120 secondsBehavior 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.

    Decision
    choose the pattern using measured recovery and acceptable source load. A longer wait does not replace an agreement with the source owner.
  5. 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.

    Important
    include that waiting period in your operating instructions. An operator should know whether the pipeline is still waiting or already requires intervention.
  6. 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 choiceIntended outcomeWhat to test
    Delivery key and deduplicationRecognize a repeated deliveryRepeating it does not increase the final count
    Staging with controlled publicationKeep partial output away from consumersPublish only after validation
    Repeatable update by business keyUpdate existing records deliberatelyA retry changes the correct records
    Isolated output per executionKeep attempts separateConsumers 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.

    Decision
    accept the retry policy only after output checks pass following a partial failure. A green run does not provide equivalent evidence.
  7. 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.

    TestSetupAcceptance criterion
    No failureKeep the dependency availableCorrect output without unnecessary recovery attempts
    Transient failureLet the test dependency recoverRun recovers and output is correct
    Persistent matching failureKeep the failure activeLimited retry budget is exhausted and failure path is clear
    Non-matching failureUse a different observed errorFilter behavior and the preceding wait are explained
    Partial writeFail after producing partial outputNo duplicate or incomplete publication
    Manual restartExecute the same test delivery againThe 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.

    Result
    the team can explain which failures recover automatically, how long recovery may take and when a person must intervene.
  8. 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 practice
    keep 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

MistakeWhy it hurtsBetter
Retrying every failurePermanent repair is delayedObserve errors and choose explicit criteria
Checking only run statusDuplicates remain invisibleValidate records, keys and totals
Copying another connector's error codeThe match does not describe your failureUse details from your own test activity
Choosing a large interval as a safety marginNon-matching failures also wait firstMeasure the complete duration
Copying settings everywhereSource load and write behavior differEvaluate each activity and destination
Treating configuration rollback as data recoveryEarlier writes remainPlan 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

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.

Configure and test selective retries in Fabric | TechExplained