ADF - Foreach activity within an If activity

Kothai Ramanathan 946 Reputation points Microsoft Employee
2020-08-18T11:23:43.237+00:00

I am not able to have a foreach activity within an IF activity. Would be good to understand the reason for this.

Thanks,
Kothai.

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

2 answers

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,916 Reputation points Volunteer Moderator
    2020-08-18T12:06:26.933+00:00

    Maybe it's as per the design or they had difficulties in implementing it.. Not sure!

    For now, we can raise or upvote existing similar feedback raised here - 40911322-support-foreach-activity-under-if-condition-and-sw

    ADF Product team monitor these feedback and work on it based on no of votes, priority..

    On similar note, ADF also has few more limitations like IF not allowed inside IF, Foreach not allowed inside ForEach. In such cases, most of the user implement workaround mostly using parent-child pipeline concept.

    =========================================================
    Please don't forget to "Accept Answer" and upvote if the response helped -- Vaibhav

    3 people found this answer helpful.

  2. Alan Hebo Jensen 16 Reputation points
    2022-12-06T12:05:04.94+00:00

    Since we pay per pipeline executed that is a pretty greedy suggestion.

    I have several issues where i need to run "until" or "forEach" but only if certain criteria is met. I wish we could go back SSIS. There are too many key features missing from ADF at this point

    3 people found this answer helpful.
    0 comments No comments

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.