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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Scott_Powell
Advocate III
Advocate III

How to send failure email in pipeline without connecting to each activity?

Hi, I've got a pipeline that includes a bunch of different activity. I'd like to add Outlook activity to send emails for the start time of the pipeline, success time of the pipeline, and failures of the pipeline.

 

The start time and success time are easy - I just add a Outlook activity to the very start of the pipeline, and add another at the end of the pipeline connected to the last operator via the "on success" connection.

 

In theory I "could" add a failure Outlook activity by connecting to each and every activity using the "on failure" connection - but this makes the pipeline impossible to read - it ends up with lines everywhere. Is there a better way to do this so I don't have to connect the failure activity to each and every other activity in the pipeline?

 

Thanks!

Scott

1 ACCEPTED SOLUTION
NandanHegde
Super User
Super User

Hey,

In case if you want to capture error message of every activity, then connecting each activity and getting the error message if any is the way as stated in eblow blog :

https://datasharkx.wordpress.com/2024/02/17/error-logging-and-the-art-of-avoiding-redundant-activiti...

 

But f you want to avoid this, then you can have your logic in a pipeline and call that pipeline via execute activity in another pipeline to directly get the error message.

 

But you would get only 1 error message of an activity and not all failed activity messages

 

NandanHegde_0-1709526312233.png

 

 




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

View solution in original post

4 REPLIES 4
NandanHegde
Super User
Super User

Hey,

In case if you want to capture error message of every activity, then connecting each activity and getting the error message if any is the way as stated in eblow blog :

https://datasharkx.wordpress.com/2024/02/17/error-logging-and-the-art-of-avoiding-redundant-activiti...

 

But f you want to avoid this, then you can have your logic in a pipeline and call that pipeline via execute activity in another pipeline to directly get the error message.

 

But you would get only 1 error message of an activity and not all failed activity messages

 

NandanHegde_0-1709526312233.png

 

 




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Hi @Scott_Powell 

 

Thanks for using Microsoft Fabric Community.

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.
In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.


Thanks.

I've accepted the original advice as the solution - but it's really suboptimal to have to join every single activity with the fail status to the failure email step. And I'm not a fan of putting pipelines inside of other pipelines - it really obfuscates what's going on.

 

I'll try to create an Idea to have a "generic fail" where you don't have to specifically wire it to every step, but if a failure happens it would automatically let you know.

 

Thanks,

Scott

Unlike PaaS Azure data factroy, you can have Status REST API or integrate with log analytics and get those details, Fabric data pipelines has yet not matured to that state as of now.

So for now this is theonly way to get all the details , but you can sure submit an idea for the product team to brainstorm on




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.