Breaking For Each activity

Manas Pandey 1 Reputation point
2022-07-08T18:42:41.61+00:00

I have a pipeline which is executing for each loop and triggering rest API, I am passing page setup and range in for each activity.
I need to break the for each loop and stop the pipeline on a certain condition, please guide how can i do it.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,140 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,145 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 29,551 Reputation points MVP
    2022-07-08T19:07:53.89+00:00

    Hey,
    You can use web activity and ADF REST API to cancel the pipeline run to break the loop and stop the pipeline on certain condition

    https://andyleonard.blog/2020/06/one-way-to-break-out-of-an-azure-data-factory-foreach-activity/

    0 comments No comments