Azure Data Factory ForEach limit at 5000 items?

Minxiao Zhou 1 Reputation point
2020-09-07T17:14:32.047+00:00

Hi,
I am using ForEach activity that loops over more than 7000 items in a Azure Data Factory pipeline.
However, looking at the run history of my pipeline, ForEach only actually covers 5000 of the items.

According to doc: https://learn.microsoft.com/en-us/azure/data-factory/control-flow-for-each-activity, ForEach should have a limit of 100,000 items, not 5000.

Is this a bug?

Thanks.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,663 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HarithaMaddi-MSFT 10,136 Reputation points
    2020-09-08T16:30:31.32+00:00

    Thanks @Minxiao Zhou for sharing additional details. Lookup activity currently has limitation as mentioned in documentation (snap below), this is the reason why you are seeing only 5000 records processed by foreach activity. Data Factory Region can be found as in second snap below.

    Hope this helps! Please let us know for further queries and we will be glad to assist.

    23180-lookuplimitation.png
    23309-datafactoryregion.png

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.