<?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: Error handling/exception handling in NOtebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14655#M9124</link>
    <description>&lt;P&gt;runtime looks for handlers (try-catch) that are registered to handle such exceptions&lt;/P&gt;</description>
    <pubDate>Mon, 26 Dec 2022 10:53:35 GMT</pubDate>
    <dc:creator>Meghala</dc:creator>
    <dc:date>2022-12-26T10:53:35Z</dc:date>
    <item>
      <title>Error handling/exception handling in NOtebook</title>
      <link>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14651#M9120</link>
      <description>&lt;P&gt;What is a common practice to to write notebook which includes error handling/exception handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any example which depicts how notebook should be written to include error handling etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 11:03:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14651#M9120</guid>
      <dc:creator>KuldeepChitraka</dc:creator>
      <dc:date>2022-12-25T11:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling/exception handling in NOtebook</title>
      <link>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14652#M9121</link>
      <description>&lt;P&gt;Hi @Kuldeep Chitrakar​&amp;nbsp;you can use &lt;B&gt;try and catch&lt;/B&gt; to handle the exception&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 12:35:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14652#M9121</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2022-12-25T12:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling/exception handling in NOtebook</title>
      <link>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14653#M9122</link>
      <description>&lt;P&gt;&amp;nbsp;it's just a simple&amp;nbsp;try except &amp;nbsp;code, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;results = {}
&amp;nbsp;
were_errors = False
&amp;nbsp;
for script_name in ['script1', 'script2', 'script3']:
&amp;nbsp;
  try:    
&amp;nbsp;
    retValue = dbutils.notebook.run(script_name)
&amp;nbsp;
    results[script_name] = retValue
&amp;nbsp;
  except Exception as e:
&amp;nbsp;
    results[script_name] = "Error: {e}"
&amp;nbsp;
    were_errors = True
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
if were_errors:
&amp;nbsp;
  log failure # you can use data from results variable
&amp;nbsp;
else:
&amp;nbsp;
  log success&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 15:28:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14653#M9122</guid>
      <dc:creator>ramravi</dc:creator>
      <dc:date>2022-12-25T15:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling/exception handling in NOtebook</title>
      <link>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14654#M9123</link>
      <description>&lt;P&gt;use try catch &lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 04:40:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14654#M9123</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2022-12-26T04:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling/exception handling in NOtebook</title>
      <link>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14655#M9124</link>
      <description>&lt;P&gt;runtime looks for handlers (try-catch) that are registered to handle such exceptions&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 10:53:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-handling-exception-handling-in-notebook/m-p/14655#M9124</guid>
      <dc:creator>Meghala</dc:creator>
      <dc:date>2022-12-26T10:53:35Z</dc:date>
    </item>
  </channel>
</rss>

