<?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() getting general error instead specific in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-getting-general-error-instead-specific/m-p/127267#M47904</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/177788"&gt;@Itai_Sharon&lt;/a&gt;,&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;When you call a Databricks notebook from another notebook (or from a Python file) using dbutils.notebook.run(), if the child notebook fails, the default behavior is for the error in the child to be wrapped and propagated up as a generic WorkflowException with a general message like: com.databricks.NotebookExecutionException: FAILED: Workload failed, see run output for details.&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;This means that the original exception (e.g., FileNotFoundError) and its stacktrace are not automatically surfaced to the caller—only the general workflow failure message appears.&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;If you run the same notebook manually, you do see the full, specific Python error log with stacktrace in the notebook UI.&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="qt3gz91 paragraph"&gt;The error thrown by &lt;STRONG&gt;dbutils.notebook.run()&lt;/STRONG&gt; is always a WorkflowException, which wraps the real error from the child notebook.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="qt3gz91 paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="qt3gz9a"&gt;There is no automatic surfacing of the nested error's stacktrace or details in the value returned to the caller.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;I am sharing official documentation for your reference:&lt;/STRONG&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/notebooks/notebook-workflows#handle-errors" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/notebooks/notebook-workflows#handle-errors&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2025 05:16:26 GMT</pubDate>
    <dc:creator>Vinay_M_R</dc:creator>
    <dc:date>2025-08-04T05:16:26Z</dc:date>
    <item>
      <title>dbutils.notebook.run() getting general error instead specific</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-getting-general-error-instead-specific/m-p/127243#M47897</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a python file using&amp;nbsp;dbutils.notebook.run() I'm running specific notebook.&lt;BR /&gt;The notebook is failling but i'm getting a general error log instead the real specific log.&lt;BR /&gt;When I'm running the notebook directly - I'm getting the specific error log.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;general log:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: An error occurred while calling o560.run. : com.databricks.WorkflowException: com.databricks.NotebookExecutionException: FAILED: Workload failed, see run output for details at com.databricks.workflow.WorkflowDriver.run(WorkflowDriver.scala:99) at com.databricks.dbutils_v1.impl.NotebookUtilsImpl.run(NotebookUtilsImpl.scala:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244) at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:397) at py4j.Gateway.invoke(Gateway.java:306) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:199) at py4j.ClientServerConnection.run(ClientServerConnection.java:119) at java.lang.Thread.run(Thread.java:750) Caused by: com.databricks.NotebookExecutionException: FAILED: Workload failed, see run output for details at com.databricks.workflow.WorkflowDriver.run0(WorkflowDriver.scala:147) at com.databricks.workflow.WorkflowDriver.run(WorkflowDriver.scala:94) ... 13 more&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;real specific log:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;FileNotFoundError: [Errno 2] No such file or directory: '/Workspace/Varonis/ETL-Processing/packages/membership/src/tables/silver/memberships_all_paths/table.py'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Aug 2025 10:59:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-getting-general-error-instead-specific/m-p/127243#M47897</guid>
      <dc:creator>Itai_Sharon</dc:creator>
      <dc:date>2025-08-03T10:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebook.run() getting general error instead specific</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-getting-general-error-instead-specific/m-p/127267#M47904</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/177788"&gt;@Itai_Sharon&lt;/a&gt;,&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;When you call a Databricks notebook from another notebook (or from a Python file) using dbutils.notebook.run(), if the child notebook fails, the default behavior is for the error in the child to be wrapped and propagated up as a generic WorkflowException with a general message like: com.databricks.NotebookExecutionException: FAILED: Workload failed, see run output for details.&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;This means that the original exception (e.g., FileNotFoundError) and its stacktrace are not automatically surfaced to the caller—only the general workflow failure message appears.&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;If you run the same notebook manually, you do see the full, specific Python error log with stacktrace in the notebook UI.&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="qt3gz91 paragraph"&gt;The error thrown by &lt;STRONG&gt;dbutils.notebook.run()&lt;/STRONG&gt; is always a WorkflowException, which wraps the real error from the child notebook.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="qt3gz91 paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="qt3gz9a"&gt;There is no automatic surfacing of the nested error's stacktrace or details in the value returned to the caller.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;I am sharing official documentation for your reference:&lt;/STRONG&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/notebooks/notebook-workflows#handle-errors" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/notebooks/notebook-workflows#handle-errors&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 05:16:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-getting-general-error-instead-specific/m-p/127267#M47904</guid>
      <dc:creator>Vinay_M_R</dc:creator>
      <dc:date>2025-08-04T05:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebook.run() getting general error instead specific</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-getting-general-error-instead-specific/m-p/127271#M47908</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/76894"&gt;@Vinay_M_R&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Are there any workaround options available?&lt;/P&gt;&lt;P&gt;I noticed that one approach involves modifying the child's notebook to include something like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;try:
    # your code
except Exception as e:
    dbutils.notebook.exit(str(e))&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;However, I’d prefer&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;not to change the notebook&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;I’m calling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any other ways to capture the specific error without modifying the child notebook?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 06:28:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-getting-general-error-instead-specific/m-p/127271#M47908</guid>
      <dc:creator>Itai_Sharon</dc:creator>
      <dc:date>2025-08-04T06:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebook.run() getting general error instead specific</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-getting-general-error-instead-specific/m-p/127450#M47974</link>
      <description>&lt;P&gt;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/76894" target="_blank"&gt;@Vinay_M_R&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BTW, when trying to run a job using Databricks API, I encounter the same issue (general "&lt;SPAN&gt;FAILED: Workload failed&lt;/SPAN&gt;"):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks.sdk import WorkspaceClient

client = WorkspaceClient()
run = client.jobs.run_now(job_id)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;error message:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;state_message='Workload failed, see run output for details'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 11:41:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-getting-general-error-instead-specific/m-p/127450#M47974</guid>
      <dc:creator>Itai_Sharon</dc:creator>
      <dc:date>2025-08-05T11:41:17Z</dc:date>
    </item>
  </channel>
</rss>

