<?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: dbutils.notebook.run() fails with job aborted but running the notebook individually works in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-fails-with-job-aborted-but-running-the/m-p/18748#M12487</link>
    <description>&lt;P&gt;Yes!  FailDemo is the .dbc of the notebook loop. RIght after this failure at 7:00:25 AM, I ran the notebook individually with no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="notebook on its own"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1806i7B8C814348E478E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="notebook on its own" alt="notebook on its own" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jun 2022 11:07:19 GMT</pubDate>
    <dc:creator>auser85</dc:creator>
    <dc:date>2022-06-04T11:07:19Z</dc:date>
    <item>
      <title>dbutils.notebook.run() fails with job aborted but running the notebook individually works</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-fails-with-job-aborted-but-running-the/m-p/18746#M12485</link>
      <description>&lt;P&gt;I have a notebook that runs many notebooks in order, along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;%python&lt;/P&gt;&lt;P&gt;notebook_list = ['Notebook1', 'Notebook2']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for notebook in notebook_list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;print(f"Now on Notebook: {notebook}")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dbutils.notebook.run(f'{notebook}', 3600)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;except Exception as e:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print(e)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pass&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this notebook, I get job aborted exceptions amounting to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Exceptions:&lt;/P&gt;&lt;P&gt;(1): Task failed while writing rows,&lt;/P&gt;&lt;P&gt;(2): Failed to execute user defined function (SQLDriverLocal$$$Lambda$1707/462935920: (string) =&amp;gt; string)&lt;/P&gt;&lt;P&gt;(3): No input widget named effective_dating is defined&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For #2 -- I have no user defined functions; I only use Spark functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I run `Notebook1` or `Notebook2` (Run all button) individually, they run as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make matters more intriguing, if I run the loop above for the *second* time, each notebook will run fine; but **only after** I run each individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have a single notebook that runs many notebooks, rather than setup a pipeline to run each individual notebook on its own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running the notebooks as a Workflow/Job also returns the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 15:53:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-fails-with-job-aborted-but-running-the/m-p/18746#M12485</guid>
      <dc:creator>auser85</dc:creator>
      <dc:date>2022-06-03T15:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebook.run() fails with job aborted but running the notebook individually works</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-fails-with-job-aborted-but-running-the/m-p/18747#M12486</link>
      <description>&lt;P&gt;hi @Andrew Fogarty​&amp;nbsp;could you please share the stacktrace? We need to test this to understand what went wrong. If you have a minimal repro, could you please export the .dbc file and add it here?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 09:18:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-fails-with-job-aborted-but-running-the/m-p/18747#M12486</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-06-04T09:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebook.run() fails with job aborted but running the notebook individually works</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-fails-with-job-aborted-but-running-the/m-p/18748#M12487</link>
      <description>&lt;P&gt;Yes!  FailDemo is the .dbc of the notebook loop. RIght after this failure at 7:00:25 AM, I ran the notebook individually with no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="notebook on its own"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1806i7B8C814348E478E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="notebook on its own" alt="notebook on its own" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 11:07:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-fails-with-job-aborted-but-running-the/m-p/18748#M12487</guid>
      <dc:creator>auser85</dc:creator>
      <dc:date>2022-06-04T11:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebook.run() fails with job aborted but running the notebook individually works</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-fails-with-job-aborted-but-running-the/m-p/18749#M12488</link>
      <description>&lt;P&gt;I found the problem. Even if a notebook creates and specifies a widget fully, the notebook run process, e.g, dbutils.notebook.run('notebook') will not know how to use it. If I replace my widget with a non-widget provided value, the process works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use my widgets without this failure?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 12:12:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-fails-with-job-aborted-but-running-the/m-p/18749#M12488</guid>
      <dc:creator>auser85</dc:creator>
      <dc:date>2022-06-04T12:12:07Z</dc:date>
    </item>
  </channel>
</rss>

