<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mssparkutils catch exception in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-catch-exception/m-p/3922308#M2038</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;Below code is working for me -&lt;BR /&gt;&lt;BR /&gt;Test Notebook 1 -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_1-1715835083276.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1099218iF038ED57B7B80676/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_1-1715835083276.png" alt="vgchennamsft_1-1715835083276.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Test Notebook 2 -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import logging

try:
    mssparkutils.notebook.run("Test Notebook 1")
except Exception as e:
    logging.exception(e)
    print("it is running")
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_2-1715835162654.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1099220i86AE34E29127DF18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_2-1715835162654.png" alt="vgchennamsft_2-1715835162654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this is helpful. Do let me know incase of further queries.&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 04:52:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-16T04:52:51Z</dc:date>
    <item>
      <title>mssparkutils catch exception</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-catch-exception/m-p/3921237#M2037</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I want to run a notebook with mssparkutils but want to continue with the code execution if the called notebook run fails, analog to having pipeline items in sequence "upon completion". Is this possible, and if so, how?&lt;/P&gt;&lt;P&gt;So far I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import sys

try:
    mssparkutils.notebook.run("00_Broken_Notebook")
except:  # catch *all* exceptions
    e = sys.exc_info()[0]
    write_to_page("&amp;lt;p&amp;gt;Error: %s&amp;lt;/p&amp;gt;" % e)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 15:42:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-catch-exception/m-p/3921237#M2037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-15T15:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: mssparkutils catch exception</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-catch-exception/m-p/3922308#M2038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;Below code is working for me -&lt;BR /&gt;&lt;BR /&gt;Test Notebook 1 -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_1-1715835083276.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1099218iF038ED57B7B80676/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_1-1715835083276.png" alt="vgchennamsft_1-1715835083276.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Test Notebook 2 -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import logging

try:
    mssparkutils.notebook.run("Test Notebook 1")
except Exception as e:
    logging.exception(e)
    print("it is running")
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_2-1715835162654.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1099220i86AE34E29127DF18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_2-1715835162654.png" alt="vgchennamsft_2-1715835162654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this is helpful. Do let me know incase of further queries.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 04:52:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-catch-exception/m-p/3922308#M2038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-16T04:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: mssparkutils catch exception</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-catch-exception/m-p/3923152#M2039</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Glad to know that your query got resolved. Please continue using Fabric Community on your further queries.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 08:58:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-catch-exception/m-p/3923152#M2039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-16T08:58:03Z</dc:date>
    </item>
  </channel>
</rss>

