Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,625 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Nested loop in ADF - how it work in runtime???
scenario: default it will load data in finance then Department and Region and Cities and location or so on
how we can set this default condition in for each loop and nested further based on condition...please help with screenshot
Try the following :
ForEach
loop with dynamic child pipelines or activities to iterate and conditionally process nested structures.Steps to Implement in ADF:
LoadFinance
, LoadDepartment
, LoadRegion
, etc.) to manage data loading for each level.["Finance", "Department", "Region", "Cities", "Location"]
).Array
type variable to define the sequence.ForEach
activity in your parent pipeline.Items
property, reference the variable holding your sequence.@variables('LoadSequence')
.ForEach
loop, use an Execute Pipeline activity to call the specific pipeline for each step.
{
"pipelineName": "@item()",
"parameters": {
"Condition": "@if(equals(item(),'Department'), 'ConditionValue', 'DefaultValue')"
}
}
ForEach
loop inside the current iteration or conditionally execute nested pipelines based on outputs.Switch
activity for branching within a loop based on conditions.ForEach
activity by toggling the Batch Count to 1.