Forum Discussion
bcdobbs
Community Champion
2 years agoEmail on Error in Pipeline
I've built a pipeline that runs two notebooks and I'm wanting it to email on failure.
It looks like:
With the Send Error Email connected on the fail nodes.
However it never triggers the ...
- Anonymous2 years ago
Yes NandanHegde got it.
It looks like we don't have any issue with data factory, it is considered as a AND operator, not a OR operator.
bcdobbs I was able to trigger an email by creating a pipeline design like above.
smpa01
Community Champion
2 years agobcdobbs I belive this would be possible.
You need to declare a global variable which is an empty array.
Then you need to create an Append Variable activity that you would connect to each of the activities in the pipeline and you would keep on appending the succees/fail status in the append variable. At t-1 step, you would create a if condition to check if the collection (array) contains any fail using contains. If yes, send an email. I did not give it a try though. Let me know if it works.