Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
lsabetta
Frequent Visitor

Pipeline doesn't execute On Error

Hi community,

 

My pipeline is not running the notebook that has to run in case one of my activities fail. It stops just after the activity that has failed. I don't know if it is related but all the 3 notebooks run within the same Session Tag
Does anyone know why?

lsabetta_0-1759761312533.png

 

1 ACCEPTED SOLUTION
smeetsh
Responsive Resident
Responsive Resident

Sadly the "on fail"  is an AND and not an OR. In your case the notebook will only trigger if all parent activities fail and not just one of them.

 

This means you will have to create a notebook for each fail activity, which is indeed a pain if you have many activities in one pipeline. We created something similar, but with using the outlook activity to send an email if a specific step fails.

 

I have looked at using a notebook to just look at the whole pipeline and alert if the pipeline itself fails, but there are 2 downsides to that.

1: It won't give any detail, but the alert would tell you to go look at the log, since something is wrong

2: I would need to set  up an api-key etc, which I haven't done yet, and it would create more admin work

 

Hopefully this is of use to you.

 

Cheers

Hans

(If my answer is helpful give it a kudo and/or mark it as a solution)

Cheers

Hans

(If my solution was usefull, please give it a kudo, and mark it as a solution)

View solution in original post

3 REPLIES 3
smeetsh
Responsive Resident
Responsive Resident

Sadly the "on fail"  is an AND and not an OR. In your case the notebook will only trigger if all parent activities fail and not just one of them.

 

This means you will have to create a notebook for each fail activity, which is indeed a pain if you have many activities in one pipeline. We created something similar, but with using the outlook activity to send an email if a specific step fails.

 

I have looked at using a notebook to just look at the whole pipeline and alert if the pipeline itself fails, but there are 2 downsides to that.

1: It won't give any detail, but the alert would tell you to go look at the log, since something is wrong

2: I would need to set  up an api-key etc, which I haven't done yet, and it would create more admin work

 

Hopefully this is of use to you.

 

Cheers

Hans

(If my answer is helpful give it a kudo and/or mark it as a solution)

Cheers

Hans

(If my solution was usefull, please give it a kudo, and mark it as a solution)
tayloramy
Super User
Super User

Hi @lsabetta

 

The connections in a pipeline are treated as AND connections, so your nb_finish_error won't run unless all 4 other activities fail. 

So the behaviour you're seeing is expected. 

 

To have OR logic, you will need to use variables and build some custom logic. 

 

 

 

If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Proud to be a Super User!





apturlov
Continued Contributor
Continued Contributor

@lsabetta could you provide the output from a failed activity? It's also not obvious from your screenshot which activity actually failed.

If you find this answer useful or solving your problem please consider giving kudos and/or marking as a solution.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Fabric Update Carousel

Fabric Monthly Update - February 2026

Check out the February 2026 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.