reference · azure data factory and fabric

Azure Data Factory and Fabric pipeline limits

A pipeline in Azure Data Factory or Fabric holds at most 120 activities, counting the ones inside containers, and takes at most 50 parameters. A Lookup returns at most 5,000 rows and 4 MB. A ForEach takes up to 100,000 items and runs 20 at once by default, 50 at most, and in ADF it can't contain another ForEach. The two platforms share those numbers. They differ on concurrency, which Fabric counts per workspace instead of per subscription, and on the size of a workspace. On the longest activity run, Microsoft's own Fabric pages disagree: 24 hours on the limits page, 7 days on the activity settings page.

  • 120 activities per pipeline, inner activities included
  • 5,000 rows and 4 MB per Lookup
  • 50 ForEach iterations at once, 100,000 items
  • 100 external activities at once per Fabric workspace

Every figure below comes from Microsoft Learn, read on 2026-11-20, with the source linked under each section. Where Microsoft publishes nothing for one platform, the table says so. The tables cover the limits a pipeline's design runs into; copy throughput, data flow and integration runtime limits are on Microsoft's own limits pages, linked below.

What are the pipeline limits in Azure Data Factory and Fabric?

The same numbers inside a pipeline, and different ones for time, concurrency and the size of the estate. In both limits tables the default and the maximum match for every limit here except ForEach parallelism, which you set yourself up to 50. ADF's pipeline overview still calls 120 activities a default soft limit.

Published pipeline limits, Azure Data Factory and Data Factory in Microsoft Fabric. Checked on Microsoft Learn on 2026-11-20.
LimitAzure Data FactoryFabric pipelines
Inside one pipeline
Activities per pipeline, inner activities of containers included 120 120
Parameters per pipeline 50 50
Characters per expression 8,192 8,192
Size of a pipeline object 200 KB 200 KB
Payload per activity run 896 KB 896 KB
Lookup and ForEach
Rows a Lookup returns 5,000 (the first 5,000) 5,000 (the first 5,000)
Size of a Lookup output 4 MB, and the activity fails above it 4 MB, and the activity fails above it
Longest Lookup before it times out 24 hours 24 hours
Items in one ForEach 100,000 100,000
ForEach iterations at once 20 by default, 50 at most 20 by default, 50 at most
Time
Longest activity run 7 days 24 hours on the limits page; the activity settings page says 7 days
Until loop timeout 7 days by default, 90 days at most Not published
Runs and concurrency
Queued runs per pipeline 100 100
Pipeline runs at once 10,000 per factory 10,000 per workspace
Stored procedure, Web and other external activities at once 3,000 per subscription per region, on the Azure integration runtime 100 per workspace
Lookup, Get Metadata and Delete activities at once 1,000 per subscription per region, on the Azure integration runtime 100 per workspace
Authoring operations at once (test connection, browse folders and tables, preview data) 200 per subscription per region, on the Azure integration runtime 50 per workspace
Size of the estate
Pipelines 5,000 entities per factory, counting pipelines, datasets, triggers, linked services, private endpoints and integration runtimes together 1,000 pipelines per workspace
Schedules per pipeline Not a per-pipeline limit; triggers count toward the 5,000 entities 20

Rows with a tinted background differ between the platforms.

Sources: Azure Data Factory limits, Data Factory limitations in Fabric, Lookup in ADF and in Fabric, Until in ADF, activity settings in Fabric.

Which activities can you nest inside which?

In Azure Data Factory, a ForEach or Until loop can hold an If or a Switch, and neither loop can hold another loop. Microsoft's rules for the four containers come down to this table.

Which container can hold which, in Azure Data Factory. Checked on Microsoft Learn on 2026-11-20.
ContainerCan hold a ForEach or UntilCan hold an If or Switch
ForEachNoYes
UntilNoYes
IfNot statedNo
SwitchNot statedNo

A Validation activity can't sit inside any container. To go a level deeper, put an Execute Pipeline activity inside the loop and give the child pipeline its own loop. That is Microsoft's documented pattern for a folder-then-files loop.

Fabric's pipeline documentation publishes no nesting rules of its own as of 2026-11-20. Build the same two-level shape there, and test a nested design in Fabric before you rely on it.

Sources: Nested activities in Azure Data Factory, ForEach limitations and workarounds.

What are the ForEach rules?

A ForEach runs its items in parallel unless you tick Sequential, 20 at a time by default and 50 at most. In Fabric, Microsoft says the activities inside the loop run in order for each item. Five more rules catch people out.

  1. The batch count is a ceiling. Microsoft says a ForEach "will not always execute at this number", so treat 50 as the most you can get.
  2. Debug runs don't run in parallel. A ForEach started from a debug session in ADF runs its items one by one. Test parallel behavior from a triggered run.
  3. Variables are shared by every iteration. In ADF, variables belong to the whole pipeline, so parallel iterations that set the same variable overwrite each other. Microsoft says Set Variable "can't be used" in a parallel ForEach. Run it sequentially, or call a child pipeline per item and keep the variable there. To collect each item's output, use Append Variable into an array. Fabric's Set Variable page states no rule either way.
  4. A variable can't reference itself. In ADF, to increment a counter, set a second variable to the new value, then copy it back.
  5. Parallel writes to one file will likely fail. Iterations writing to different files in one folder are fine. Iterations writing to the same file will most likely error.

When a loop needs more than one activity per item, Microsoft recommends moving them into a child pipeline and calling it with Execute Pipeline. It also notes that a loop holding several activities can be slow to exit, because of the aggregation and cleanup work it does. How a parent waits for that child, and the other ways to make pipelines wait for each other, are in Data Factory pipeline dependencies. What a rerun does inside a loop is in rerun from the failed activity.

Sources: ForEach in ADF, ForEach in Fabric, Set Variable, troubleshooting pipeline orchestration (debug runs).

Can a pipeline choose which child pipeline to run?

In ADF, not from an expression. Execute Pipeline takes a pipeline reference that you pick when you build it, and Microsoft documents no way to set it from a parameter or a table row. In Fabric, Invoke pipeline has you select the workspace and the pipeline in its settings, but the Fabric actions activity, in preview, can run a pipeline from inputs given as dynamic content.

In ADF, two routes stay inside the platform. A Switch with one Execute Pipeline per case picks among a known set, and every case counts toward the 120 activities. Or a Web activity calls the Data Factory REST API's create-run operation with the pipeline name as a value, which Microsoft says works only once the factory's managed identity has the Contributor role. One more trap: Execute Pipeline passes an array parameter to the child as a string, so build arrays with createArray().

Sources: Execute Pipeline in ADF, Invoke pipeline in Fabric, Pipelines, Create Run (REST API), Fabric actions activity, troubleshooting pipeline orchestration (array parameters).

What do you do when you hit a limit?

Split the work so each piece fits, almost always with a parent pipeline that calls children. Each limit has a usual fix.

Usual fixes when a pipeline hits a published limit.
You hitWhat you may seeThe usual fix
120 activities The pipeline can't take another activity Move groups of steps into child pipelines and call them with Execute Pipeline or Invoke pipeline. Each child has its own 120.
Many chained activities A FlowRunSizeLimitExceeded error, which Microsoft's troubleshooting guide puts down to chaining many activities Microsoft's fix is the same: split the pipeline into child pipelines stitched together with Execute Pipeline.
5,000 Lookup rows The first 5,000 rows and no more Page the query, for example by a key range, and loop over the pages with a child pipeline that looks up one page at a time.
4 MB Lookup output The Lookup fails Return fewer columns, or page as above.
A loop inside a loop Not supported in ADF (see the nesting table) Execute Pipeline inside the outer loop, with the inner loop in the child.
896 KB payload "The payload including configurations on activity/dataSet/linked service is too large" Pass a table name or a file path between activities instead of the rows themselves.
Concurrent external activities Error 2003, throttling under the current limit Run fewer pipelines at once and spread their trigger times, as Microsoft advises. In Fabric the limit counts per workspace.
Long activities in Fabric An activity times out Until Microsoft's two Fabric pages agree, plan for the stricter 24 hours: split long work into steps that each finish inside a day, and check ADF timeouts over 24 hours before moving a pipeline.

Sources: Lookup limitations and workarounds, troubleshooting ADF pipelines (payload, error 2003), troubleshooting pipeline orchestration (FlowRunSizeLimitExceeded).

Where do Fabric and Azure Data Factory differ?

On three published limits, plus one that Microsoft's own Fabric pages state two ways. All four matter most when a pipeline moves from ADF to Fabric.

  • Activity runs may be shorter. Fabric's limits page caps an activity run at 24 hours, while its activity settings page gives a 7-day maximum, as ADF does. Plan for 24 hours: a long copy or a long wait that works in ADF can time out after the move.
  • Concurrency is per workspace. Fabric allows 100 external activities and 100 Lookup, Get Metadata and Delete activities at once in each workspace. ADF allows 3,000 and 1,000 per subscription in a region, on the Azure integration runtime. An engine that logs every step with a stored procedure spends that budget on bookkeeping.
  • A workspace holds 1,000 pipelines. ADF caps a factory at 5,000 entities, pipelines and everything else together.
  • Schedules attach to the pipeline. A Fabric pipeline takes up to 20. In ADF, triggers are separate objects counted toward the factory's 5,000.

The rest of the move, from triggers to monitoring, is covered in Fabric Data Factory vs Azure Data Factory.

How do the limits shape a pipeline design?

The documented workarounds lead to one shape: a parent pipeline that reads a list of work and calls children, each of which fits inside the limits.

Keeping that list in a table instead of on the canvas is metadata-driven orchestration. Microsoft's own pattern for it in ADF is walked through in metadata-driven ETL in Azure Data Factory. When the parent is a pipeline full of Execute Pipeline calls, the result is the master pipeline problem.

A disclosure. ETLMaestro, which we sell, keeps the run plan in a database and starts your pipelines from an engine outside them, so the per-pipeline limits apply to each pipeline it runs rather than to one master pipeline that holds the whole night. How it works.

Questions about pipeline limits

What is the maximum number of activities in an Azure Data Factory pipeline?

A pipeline holds at most 120 activities, and the count includes the activities inside ForEach, Until, If and Switch containers. Fabric pipelines have the same limit. Both limits tables list 120 as the default and the maximum, though ADF's pipeline overview calls it a default soft limit. Past 120, split the work into child pipelines called with Execute Pipeline in ADF or Invoke pipeline in Fabric. Each child gets its own 120.

How many rows can a Lookup activity return?

At most 5,000 rows and 4 MB, in Azure Data Factory and in Fabric. Above 5,000 rows the Lookup returns the first 5,000, so check the count. Above 4 MB the activity fails. For ADF, Microsoft's workaround is an outer pipeline that iterates over an inner pipeline whose Lookup stays under both limits.

Can you nest a ForEach inside a ForEach in Azure Data Factory?

No. In Azure Data Factory a ForEach or Until loop supports one level of nesting, so it can't contain another ForEach or Until. If and Switch can go inside a ForEach or Until, but not inside another If or Switch. The documented workaround is an Execute Pipeline activity inside the loop that calls a child pipeline holding the inner loop. Fabric's documentation publishes no nesting rules of its own.

How many ForEach iterations run in parallel?

Up to 20 by default and 50 at most, set with the batch count, in Azure Data Factory and in Fabric. Microsoft calls it an upper limit that a ForEach won't always reach. A ForEach run from a debug session in ADF doesn't run in parallel at all, so test parallel behavior from a triggered run.

Can you use Set Variable inside a parallel ForEach?

Not safely in Azure Data Factory. Variables there belong to the whole pipeline, not to one ForEach iteration, so parallel iterations that set the same variable overwrite each other. Microsoft's advice is to run the ForEach sequentially, or to call a child pipeline for each item and keep the variable in the child. Append Variable is the documented way to collect a ForEach's outputs into one array. Fabric's Set Variable page states no rule either way.

Are Fabric pipeline limits the same as Azure Data Factory's?

Mostly. The per-pipeline limits match: 120 activities, 50 parameters, 5,000 Lookup rows, 100,000 ForEach items and 50 parallel iterations. Three differ. Fabric allows 100 external activities and 100 Lookup, Get Metadata and Delete activities at once per workspace, where ADF allows 3,000 and 1,000 per subscription in a region on the Azure integration runtime. A Fabric workspace holds 1,000 pipelines. And a Fabric pipeline takes up to 20 schedules. On the longest activity run, Microsoft's Fabric pages disagree: the limits page says 24 hours and the activity settings page says 7 days, which is ADF's limit.

Sources and verification

Written by the ETLMaestro team, who build orchestration on both platforms. Every limit and rule was read on the live Microsoft Learn page on 2026-11-20. This page is re-checked every quarter, next on 2027-02-20, and the facts-verified date only moves when that check happens.

Spot something out of date? Send us a message and we'll check it against the source.

Is your estate built around these limits?

Nine questions, three minutes, no email. The Master Pipeline Health Check scores visibility, failure recovery, configuration, and key-person risk, and names what to fix first.