March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Team,
I am facing an issue when trying to Execute my 'child pipeline' based on output of 'Master Pipeline'.
Here is the scenario:
1. Master Pipeline has a 'ForEach loop' activity which does export of data to SQL Server.
2. Copy data activity is used inside the ForEach loop to do the above.
3. Also Exception handling is done for Copy data activity(i.e. in case of failure of any export of data, it sends out an email to users)
4. Once loop is successfully executed, it should execute the next pipeline-child.
5. Above is done based on 'Execute Pipeline' Activity.
Now the conern in the above is, whenever an export of Data(i.e. CopyData) activity is failing it is sending out an mail which is expected, but it is returning the status of this pipeline as Success.
But my child pipeline is dependent on the success of CopyData Activity but not the success of pipeline. To sum up, child pipeline should run only when export of data is completed successfully for all the iterations. Even if one of the iteration fails, child pipeline should not be executed.
I tried using 'Fail' Activity and also 'Append Variable' activity to capture the errors, but it is not working.
Could you please let me know how to achieve this Scenario in Fabric? Also Please provide any insights or references you thought would be helpful to achieve this.
Thank you.
Solved! Go to Solution.
The pipeline is a sucess because of the below combination of copy activity :
if you want the pipeline to fail replace it with below combination
Can you please share the image of your flow within the foreach activity?
In case if the copy activity has only 1 activity attached to it with on failure dependency, even though the copy activity fails, your pipeline status would be a success.
Please refer the end of below blog for detailed understanding :
The pipeline is a sucess because of the below combination of copy activity :
if you want the pipeline to fail replace it with below combination
Hi @AmruthaVarshini ,
Glad to know that your query got resolved. Please continue using Fabric Community on your further queries.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
7 | |
4 | |
2 | |
2 | |
2 |
User | Count |
---|---|
15 | |
10 | |
7 | |
5 | |
4 |