how to get exception from synapse notebook in pipeline activity

Veera Satya Teja Mummidi 40 Reputation points
2024-02-07T02:10:49.2866667+00:00

Hi Team, I ran a notebook from the pipeline and it has failed with exception in the notebook but pipeline activity has showing succeeded. How can i get the error details of the notebook from pipeline and will send the error notification through email. Thanks, Satya

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,396 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2024-02-07T14:31:14.9033333+00:00

    Hi Veera Satya Teja Mummidi, Thank you for posting query in Microsoft Q&A Platform.

    You can consider using mssparkutils.notebook.exit() function, to exit notebook with exception details. And then in pipeline, in activity output, you will see the error details. Based on exit value in pipeline, you can consider implementation of trigger email.> Kindly consider check below video to understand more about this.> exit() function of notebook module in MSSparkUtils package in Azure Synapse Analytics

    Please consider checking below sample code for notebook. User's image

    Hope this helps. Please let me know if any further queries.


    Please consider hitting Accept Answer button. Accepted answers help community as well.


0 additional answers

Sort by: Most helpful