简体   繁体   中英

Azure Data Factory V2: workaround to not being able to have a forEach activity inside a If Condition activity

I want to have a forEach activity to be run if it meets some condition (inside a If Condition activity). But I get the following error:

ForEach activity ('') is not allowed under a Switch Activity.

在此处输入图像描述

Is there any way of looping through items only if a condition is met in ADF?

You will need to architect your solution around the nesting restrictions like this. This is typically solved by placing the conditional workloads in other pipelines and using the Execute Pipeline activity inside the parent pipeline. You may need several child pipelines based on the complexity of the workloads. Use parameters to pass dependent values and the "Wait on completion" action to control concurrency.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM