Forum Discussion
Error Handling in Dataflow Pipelines
- 1 year ago
Hi hameed4ru,
Thank you for reaching out to the Microsoft Fabric Community.
You're on the right track by routing failed dataflows to a central notebook for error reporting and notifications. However, the issue you're facing is likely due to the use of mssparkutils.pipeline.getActivityOutput(), which only returns output for successful activities. This behavior is confirmed in Microsoft’s documentation here:
Microsoft Spark Utilities (MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft LearnTo make your solution more reliable, we recommend passing the failure context (e.g., dataflow name and error message) directly to the notebook via pipeline parameters when a dataflow fails. These can then be retrieved using mssparkutils.pipeline.getInputParameters() inside the notebook.
For your reference, I am also including the link that has already been accepted by the community.Please have a look for better understandingSolved: Is it possible to pass parameter from notebook act... - Microsoft Fabric Community
Parameters - Microsoft Fabric | Microsoft Learn
Additionally, ensure your Outlook activity is configured to handle HTML content correctly to avoid formatting issues during email delivery.
We suggest replacing the output polling logic with parameter passing through failure branches. It’s simpler, more reliable, and fully supported within Fabric’s orchestration framework.
If this solution worked for you, kindly mark it as Accept as Solution and feel free to give a Kudos, it would be much appreciated!
Thank you,
Sahasra - 1 year ago
Hi hameed4ru,
We wanted to follow up to see if our suggestion was helpful. Please let us know how things are progressing and if you are still encountering any issues.
If the response resolved your problem, you may mark it as the solution and give it a thumbs up to assist others in the community as well.
Thank you.
Hi hameed4ru,
Thank you for reaching out to the Microsoft Fabric Community.
You're on the right track by routing failed dataflows to a central notebook for error reporting and notifications. However, the issue you're facing is likely due to the use of mssparkutils.pipeline.getActivityOutput(), which only returns output for successful activities. This behavior is confirmed in Microsoft’s documentation here:
Microsoft Spark Utilities (MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn
To make your solution more reliable, we recommend passing the failure context (e.g., dataflow name and error message) directly to the notebook via pipeline parameters when a dataflow fails. These can then be retrieved using mssparkutils.pipeline.getInputParameters() inside the notebook.
For your reference, I am also including the link that has already been accepted by the community.Please have a look for better understandingSolved: Is it possible to pass parameter from notebook act... - Microsoft Fabric Community
Parameters - Microsoft Fabric | Microsoft Learn
Additionally, ensure your Outlook activity is configured to handle HTML content correctly to avoid formatting issues during email delivery.
We suggest replacing the output polling logic with parameter passing through failure branches. It’s simpler, more reliable, and fully supported within Fabric’s orchestration framework.
If this solution worked for you, kindly mark it as Accept as Solution and feel free to give a Kudos, it would be much appreciated!
Thank you,
Sahasra
- v-sgandrathi1 year agoCommunity Support
Hhi hameed4ru,
Just wanted to check regarding your question. We haven’t heard back and want to ensure you're not stuck. If you need anything else or have updates to share, we’re here to help!
If the previous reply resolved your issue, please consider marking it as Accepted and giving it a Kudos to help others find it easily.
If it's resolved, feel free to hit Accept as Solution and drop a Kudos.
- v-sgandrathi1 year agoCommunity Support
Hi hameed4ru,
Hope you're doing well! Just following up to see if the response we shared was helpful. If you have any further questions or need clarification, we’re here to assist.
If your issue is resolved, please consider marking the answer as Accepted and giving it a Kudos to help others in the community.
Thanks for being a part of the Microsoft Fabric Community!
- v-sgandrathi1 year agoCommunity Support
Hi hameed4ru,
We wanted to follow up to see if our suggestion was helpful. Please let us know how things are progressing and if you are still encountering any issues.
If the response resolved your problem, you may mark it as the solution and give it a thumbs up to assist others in the community as well.
Thank you.