Forum Discussion

hameed4ru's avatar
hameed4ru
Frequent Visitor
1 year ago
Solved

Error Handling in Dataflow Pipelines

Hi Team, I have one pipeline sequence where it will run multiple dataflow's with interdependence. I have designed a job in such a way that on each successful completion of one dataflow-1 another wil...
  • v-sgandrathi's avatar
    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 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-sgandrathi's avatar
    v-sgandrathi
    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.