Hello @arkiboys ,
Thanks for the question and using MS Q&A platform.
My understanding is that you are having an IF condition activity in which you check for a condition and based on the condition outcome you will have a fail activity in TRUE path (if condition is true) and some other flow of activities in the FALSE PATH of the condition. But as you are having Fail activity in TRUE path and when the flow enters TRUE path your fail activity gets executed which inturn fails the pipeline. But you want to avoid pipeline failing. Please correct me if I'm not accurate.
If you want to avoid your pipeline failing because of fail activity, I recommend avoid using Fail activity in the TRUE Path, instead you can have a set variable activity with some Custom message set for the variable. This way you can avoid the pipeline failure when the flow takes the TRUE PATH. And if the flow takes the FALSE PATH, it will continue executing your subsequent activities inside the IF Condition activity.
In case if you have few more activities outside of the IF Condition activity, and you still want to use fail activity but discontinue the subsequent activity execution up on fail activity execution but make the pipeline run successful, then you may have to design your activity flow (based on the success/failure dependency) as TRY-CATCH method as described in the below articles:
- Understanding Pipeline Failures and Error Handling
- Understanding Pipeline Failures and Error Handling 2
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators