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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bhavya5903
Advocate II
Advocate II

How to Call Another Pipeline on Failure and Store Error Details in Lakehouse?

Question:

I am working with Microsoft Fabric Data Pipelines and need to implement a failure-handling mechanism.


Scenario:

  • I have a main pipeline with multiple activities (e.g., Copy Data, Set Variable, etc.).
  • If any activity fails, I want to trigger another pipeline (FailureHandlerPipeline).
  • I need to pass failure details dynamically, including:
    • FailedActivityName
    • ErrorMessage
    • ErrorCode
    • PipelineName
  • The FailureHandlerPipeline should store these details in a Lakehouse table for logging and troubleshooting.

Challenges:

  1. How do I dynamically capture failure details from multiple activities and pass them to the failure-handling pipeline?
  2. What’s the best approach to store these details in Lakehouse using a low-code method?
  3. Can I handle multiple failures at the same time? If multiple activities fail, will the failure-handling pipeline execute multiple times, or is there a way to batch the errors?

I appreciate any guidance, best practices, or alternative approaches!

 
1 ACCEPTED SOLUTION

Sorry to have missed out on this thread.

You can refer the below blog wherein you can copy the varibles/activity outpput into lakehouse :

https://datasharkx.wordpress.com/2023/04/20/copying-variable-parameter-into-sink-azure-blob-storage-...




----------------------------------------------------------------------------------------------
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
bhavya5903
Advocate II
Advocate II

Can anyone help me with this?

Sorry to have missed out on this thread.

You can refer the below blog wherein you can copy the varibles/activity outpput into lakehouse :

https://datasharkx.wordpress.com/2023/04/20/copying-variable-parameter-into-sink-azure-blob-storage-...




----------------------------------------------------------------------------------------------
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
NandanHegde
Super User
Super User

please refer this blog : https://datasharkx.wordpress.com/2021/08/19/error-logging-and-the-art-of-avoiding-redundant-activiti... 

to manage error logging for multiple activities.

You can use the combination of on skip, on completion and on failure dependencies to trigger another pipeline on failure as stated in the aboe blog.

 

You can dynamically get the pipelinename, error messgae and error code via system variables but you cannot get the activity name dynamically




----------------------------------------------------------------------------------------------
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

The FailureHandlerPipeline should store these details in a Lakehouse table for logging and troubleshooting

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors