<?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.notebooks.exit() is not returning results to the variable only on some notebooks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118613#M45665</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/163863"&gt;@SteveW&lt;/a&gt;&amp;nbsp;, You are correct, we are also facing the same issue from yesterday.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Scenario 1:&lt;/STRONG&gt;&lt;BR /&gt;The issue only occurs with notebooks that use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;structured streaming&lt;/STRONG&gt;. For non-streaming notebooks,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dbutils.notebook.exit()&amp;nbsp;works as expected.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Scenario 2:&lt;/STRONG&gt;&lt;BR /&gt;The failure happens only when there's actual data to be streamed from Bronze to Silver and Gold layers. On the initial run — when data is present — the process fails. However, on a retry (when there's no new data to stream), it succeeds without any issues.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Scenario 3:&lt;/STRONG&gt;&lt;BR /&gt;We added&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;.awaitTermination()&amp;nbsp;to all streaming queries, and after that change, the job started succeeding — at least on retries.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;We suspect the issue is related to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Databricks IDE/UI behavior&lt;/STRONG&gt;, and here's what we observed:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;A notebook run at&amp;nbsp;&lt;STRONG&gt;06:25 AM IST on May 9th&lt;/STRONG&gt;&amp;nbsp;did&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt;&amp;nbsp;display the streaming dashboard UI,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;and we haven't got any issue&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;in the parent Child Handshake using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dbutils.notebook.exit(json)&amp;nbsp;command&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v_n66_3-1746757635565.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16720i2AC9856B7F2B3D7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v_n66_3-1746757635565.png" alt="v_n66_3-1746757635565.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;however, with the same code, we could see that the streaming window popped for 05.25AM run and this time child notebook, doesn't send the dbutils.notebook.exit(json) to the parent.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v_n66_4-1746757807753.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16721iEDF3B6F232C31BFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v_n66_4-1746757807753.png" alt="v_n66_4-1746757807753.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 02:34:59 GMT</pubDate>
    <dc:creator>v_n66</dc:creator>
    <dc:date>2025-05-09T02:34:59Z</dc:date>
    <item>
      <title>dbutils.notebooks.exit() is not returning results to the variable only on some notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118532#M45652</link>
      <description>&lt;P&gt;dbutils.notebooks.exit() is not returning results to the variable only on some notebooks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;issue is Parent child notebook communication and need some solution&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 14:40:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118532#M45652</guid>
      <dc:creator>v_n66</dc:creator>
      <dc:date>2025-05-08T14:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebooks.exit() is not returning results to the variable only on some notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118592#M45661</link>
      <description>&lt;P&gt;We believe that we're experiencing the same issue, and that it is affecting other users too.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;result &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; dbutils.notebook.&lt;/SPAN&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;SPAN&gt;(notebook_to_run, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, notebook_args)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(result)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;We can see that the run of &lt;EM&gt;notebook_to_run&lt;/EM&gt; completed successfully with (we believe) an exit message, however the print line is showing "none".&amp;nbsp;&lt;/SPAN&gt;When we re-run the relevant workflow the issue resolves, however the issue the occurs in the next step which has similar code, re-running again resolves that step so we have had to run the workflow once per step in order for Databricks to recognise that the steps have succeeded.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 May 2025 00:51:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118592#M45661</guid>
      <dc:creator>SteveW</dc:creator>
      <dc:date>2025-05-09T00:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebooks.exit() is not returning results to the variable only on some notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118613#M45665</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/163863"&gt;@SteveW&lt;/a&gt;&amp;nbsp;, You are correct, we are also facing the same issue from yesterday.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Scenario 1:&lt;/STRONG&gt;&lt;BR /&gt;The issue only occurs with notebooks that use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;structured streaming&lt;/STRONG&gt;. For non-streaming notebooks,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dbutils.notebook.exit()&amp;nbsp;works as expected.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Scenario 2:&lt;/STRONG&gt;&lt;BR /&gt;The failure happens only when there's actual data to be streamed from Bronze to Silver and Gold layers. On the initial run — when data is present — the process fails. However, on a retry (when there's no new data to stream), it succeeds without any issues.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Scenario 3:&lt;/STRONG&gt;&lt;BR /&gt;We added&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;.awaitTermination()&amp;nbsp;to all streaming queries, and after that change, the job started succeeding — at least on retries.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;We suspect the issue is related to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Databricks IDE/UI behavior&lt;/STRONG&gt;, and here's what we observed:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;A notebook run at&amp;nbsp;&lt;STRONG&gt;06:25 AM IST on May 9th&lt;/STRONG&gt;&amp;nbsp;did&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt;&amp;nbsp;display the streaming dashboard UI,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;and we haven't got any issue&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;in the parent Child Handshake using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dbutils.notebook.exit(json)&amp;nbsp;command&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v_n66_3-1746757635565.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16720i2AC9856B7F2B3D7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v_n66_3-1746757635565.png" alt="v_n66_3-1746757635565.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;however, with the same code, we could see that the streaming window popped for 05.25AM run and this time child notebook, doesn't send the dbutils.notebook.exit(json) to the parent.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v_n66_4-1746757807753.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16721iEDF3B6F232C31BFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v_n66_4-1746757807753.png" alt="v_n66_4-1746757807753.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 02:34:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118613#M45665</guid>
      <dc:creator>v_n66</dc:creator>
      <dc:date>2025-05-09T02:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebooks.exit() is not returning results to the variable only on some notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118615#M45666</link>
      <description>&lt;P&gt;Thanks for that extra info&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/163804"&gt;@v_n66&lt;/a&gt;&amp;nbsp;- very useful!&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 02:39:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118615#M45666</guid>
      <dc:creator>SteveW</dc:creator>
      <dc:date>2025-05-09T02:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebooks.exit() is not returning results to the variable only on some notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118706#M45690</link>
      <description>&lt;P&gt;I'm facing the same problem, I hope someone will solve it next monday&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":dizzy_face:"&gt;😵&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 15:35:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118706#M45690</guid>
      <dc:creator>lorenzoscandola</dc:creator>
      <dc:date>2025-05-09T15:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebooks.exit() is not returning results to the variable only on some notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118810#M45716</link>
      <description>&lt;P&gt;Update: as of Sunday morning NZT we haven't seen the workflow failures that we were, so it may be that the issue is resolved. Are you seeing the same&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/163804"&gt;@v_n66&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/116847"&gt;@lorenzoscandola&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 21:13:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118810#M45716</guid>
      <dc:creator>SteveW</dc:creator>
      <dc:date>2025-05-11T21:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebooks.exit() is not returning results to the variable only on some notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118822#M45723</link>
      <description>&lt;P&gt;From the support ticket we logged (via MS): "&lt;STRONG&gt;The Databricks engineering team identified a bug related to dbutils.notebook.exit /dbutils.notebook.run in Jobs API. The Jobs engineering team rolled back all environments to the previously working version of the Jobs API.&lt;/STRONG&gt;" ... and from less official channels: "there was a rollback to the Jobs API sometime on &lt;STRONG&gt;Saturday evening&lt;/STRONG&gt; by Databricks."&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 05:32:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118822#M45723</guid>
      <dc:creator>SteveW</dc:creator>
      <dc:date>2025-05-12T05:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebooks.exit() is not returning results to the variable only on some notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118870#M45731</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/163863"&gt;@SteveW&lt;/a&gt;&amp;nbsp;atm everything works!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 09:54:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118870#M45731</guid>
      <dc:creator>lorenzoscandola</dc:creator>
      <dc:date>2025-05-12T09:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebooks.exit() is not returning results to the variable only on some notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118883#M45733</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/163863"&gt;@SteveW&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/116847"&gt;@lorenzoscandola&lt;/a&gt;&amp;nbsp;Its working without any issue from Yesterday. Thank you guys for the support.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 12:34:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebooks-exit-is-not-returning-results-to-the-variable/m-p/118883#M45733</guid>
      <dc:creator>v_n66</dc:creator>
      <dc:date>2025-05-12T12:34:09Z</dc:date>
    </item>
  </channel>
</rss>

