<?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: How do you throw an error from a Notebook so a Data Factory pipeline knows to stop running? in Data Science</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4096919#M261</link>
    <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/307993"&gt;@arpost&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;If these also don't help, please share more detailed information and description to help us clarify your scenario to test.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 07:04:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-13T07:04:34Z</dc:date>
    <item>
      <title>How do you throw an error from a Notebook so a Data Factory pipeline knows to stop running?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4087527#M258</link>
      <description>&lt;P&gt;Greetings, all. I am wanting a notebook to throw an error if a condition isn't met, and I want that error to show in a Data Factory pipeline that is triggering the notebook. How can I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 17:55:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4087527#M258</guid>
      <dc:creator>arpost</dc:creator>
      <dc:date>2024-08-07T17:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you throw an error from a Notebook so a Data Factory pipeline knows to stop running?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4087668#M259</link>
      <description>&lt;P&gt;I think you can use exit value in Notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then use the Notebook exit value as input for an IF Condition activity in your data pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Pipelines/Referencing-notebook-exit-value-as-a-variable-in-a-data-pipeline/m-p/3507053" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Data-Pipelines/Referencing-notebook-exit-value-as-a-variable-in-a-data-pipeline/m-p/3507053&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 18:58:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4087668#M259</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-07T18:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you throw an error from a Notebook so a Data Factory pipeline knows to stop running?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4096919#M261</link>
      <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/307993"&gt;@arpost&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;If these also don't help, please share more detailed information and description to help us clarify your scenario to test.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 07:04:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4096919#M261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T07:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do you throw an error from a Notebook so a Data Factory pipeline knows to stop running?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4100622#M263</link>
      <description>&lt;P&gt;Thanks for the reply,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/437984"&gt;@frithjof_v&lt;/a&gt;. The challenge there is I'd then need to add logic in the pipeline to evaluate whether or not the exit value output indicates an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution I found (which I found somewhere on the internet that I don't recall) is to use raise Exception("Error message here"). Here's a modified version of the code block; the vars are just fake examples of operations I am performing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if var == None:
  raise Exception("No match found.")
else: 
    var2 = var&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This sends the exception back as an error to the pipeline so the Notebook activity actually fails, which is handy.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 15:58:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4100622#M263</guid>
      <dc:creator>arpost</dc:creator>
      <dc:date>2024-08-14T15:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you throw an error from a Notebook so a Data Factory pipeline knows to stop running?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4100653#M264</link>
      <description>&lt;P&gt;Nice, thanks for sharing!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 16:17:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/How-do-you-throw-an-error-from-a-Notebook-so-a-Data-Factory/m-p/4100653#M264</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-14T16:17:38Z</dc:date>
    </item>
  </channel>
</rss>

