Forum Discussion
Fail Activity
- 1 year ago
In Fabric pipelines, when using a ForEach loop in sequential mode, the default behavior is to continue executing iterations even if one fails. To stop execution when a failure occurs, follow these approaches:
Create a variable error (default value = 0).
Use an If Condition inside the ForEach loop:
If error == 0, execute the next iteration.
If error == 1, do nothing
Inside the if container (true). do the following:
Add an Execute Pipeline activity to call the inner pipeline
If the pipeline fails, set the error variable to 1.
Hi Anonymous ,
We haven’t heard from you since our last response and wanted to check if your query has been resolved. If not, please provide additional details so we can assist you better.
If your issue has been resolved and a response was helpful, kindly mark it as the Accepted Solution to assist others with similar queries.
Thank you!