<?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: workspace notebook path not recognized by dbutils.notebook.run() when running from a workflow/jo in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142868#M52038</link>
    <description>&lt;P&gt;Hi Siva, thanks for the response.&lt;/P&gt;&lt;P&gt;Yes we use the relative path for calling the notebooks within the repo.&lt;/P&gt;&lt;P&gt;Here I'm trying to call a notebook which is in the workspace from a job that is being executed from repo.&lt;/P&gt;&lt;P&gt;I have ensured all the required permissions but it says "either the notebook doesnot exists or user does not have permissions to run"&lt;/P&gt;&lt;P&gt;I see this behavior starting from last couple of months in 2025.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jan 2026 18:59:54 GMT</pubDate>
    <dc:creator>siva_pusarla</dc:creator>
    <dc:date>2026-01-02T18:59:54Z</dc:date>
    <item>
      <title>workspace notebook path not recognized by dbutils.notebook.run() when running from a workflow/job</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142355#M51928</link>
      <description>&lt;P&gt;&lt;EM&gt;result = dbutils.notebooks.run("/Workspace/YourFolder/NotebookA", &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;timeout_seconds=600, arguments={"param1": "value1"}) &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;print(result)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I was able to execute the above code manually from a notebook.&lt;/P&gt;&lt;P&gt;But when i run the same notebook as a job, it fails stating that the path not found.&lt;/P&gt;&lt;P&gt;Complete code is checked-in to repo and job reads the source from repo.&lt;/P&gt;&lt;P&gt;But I'm still unclear as I have mentioned the absolute path of the workspace notebookA.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 12:26:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142355#M51928</guid>
      <dc:creator>siva_pusarla</dc:creator>
      <dc:date>2025-12-22T12:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: workspace notebook path not recognized by dbutils.notebook.run() when running from a workflow/jo</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142357#M51929</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/201703"&gt;@siva_pusarla&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As per official docs,&amp;nbsp;the “absolute path” examples for running/importing notebooks are like:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;/Users/&amp;lt;user&amp;gt;@&amp;lt;org&amp;gt;/folder/notebook (workspace notebooks)&lt;/LI&gt;
&lt;LI&gt;and for repos, /Repos/... or /Workspace/Repos/... (those two are equivalent for Repos)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-start="474" data-end="657"&gt;So&lt;STRONG&gt; /Workspace/YourFolder/NotebookA&lt;/STRONG&gt;&lt;CODE data-start="477" data-end="510"&gt;&lt;/CODE&gt; is often not a valid notebook object path, unless that exact path exists as a notebook path in your workspace.&lt;/P&gt;
&lt;P data-start="474" data-end="657"&gt;Also, when the job is configured to run from a remote Git repository, the notebook being executed is an ephemeral checkout, and paths behave differently between Git folders and workspace folders. Databricks even calls out that Git-folder path behaviour can differ from workspace-folder behaviour.&lt;/P&gt;
&lt;P data-start="474" data-end="657"&gt;&lt;STRONG&gt;Please refer to doc&lt;/STRONG&gt;:&amp;nbsp;&lt;A href="https://kb.databricks.com/libraries/paths-behave-differently-on-git-folders-and-workspace-folders" target="_blank"&gt;https://kb.databricks.com/libraries/paths-behave-differently-on-git-folders-and-workspace-folders&lt;/A&gt;&lt;/P&gt;
&lt;P data-start="474" data-end="657"&gt;So in the job run, Databricks tries to resolve &lt;CODE data-start="1113" data-end="1146"&gt;/Workspace/YourFolder/NotebookA&lt;/CODE&gt; as a notebook path and can’t find it and hence throws the &lt;STRONG&gt;pathNotFoundError&lt;/STRONG&gt;&lt;/P&gt;
&lt;P data-start="474" data-end="657"&gt;&lt;STRONG&gt;You need to refer to this doc for best practices to use Notebooks: &lt;/STRONG&gt;&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-workflows" target="_blank"&gt;https://docs.databricks.com/aws/en/notebooks/notebook-workflows&lt;/A&gt;&lt;/P&gt;
&lt;H3 data-start="659" data-end="730"&gt;&amp;nbsp;&lt;/H3&gt;</description>
      <pubDate>Mon, 22 Dec 2025 13:43:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142357#M51929</guid>
      <dc:creator>K_Anudeep</dc:creator>
      <dc:date>2025-12-22T13:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: workspace notebook path not recognized by dbutils.notebook.run() when running from a workflow/jo</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142366#M51931</link>
      <description>&lt;P&gt;Hi Anudeep,&lt;/P&gt;&lt;P&gt;thanks for your response..&lt;/P&gt;&lt;P&gt;notebookA is not the part of repo code.. it is a constant file in workspace.&lt;/P&gt;&lt;P&gt;I would like to keep some files local to the workspace(for env setup) irrespective of the repos.&lt;/P&gt;&lt;P&gt;| git_folder (GIT)&lt;BR /&gt;| -- module&lt;BR /&gt;| ---- app.py&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;| Workspace_folder&lt;BR /&gt;| -- Common_Utils&lt;BR /&gt;| ---- env_setup.py&lt;/P&gt;&lt;P&gt;env_setup is local to different workspaces - dev,test and prod - hence cannot checkin to repo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to the above set up i want to run dbutils.notebook.run(/Workspace/Common_Utils/env_setup) from app.py while executing the app through workflow/job&lt;/P&gt;&lt;P&gt;&lt;EM&gt;com.databricks.WorkflowException: com.databricks.NotebookExecutionException: FAILED: Unable to access the notebook "Workspace/Common_Utils/env_setup". Either it does not exist, or the identity used to run this job, xxx, lacks the required permissions.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But both the notebook and the permission to the notebook exists and works fine when run outside the job&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 15:56:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142366#M51931</guid>
      <dc:creator>siva_pusarla</dc:creator>
      <dc:date>2025-12-22T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: workspace notebook path not recognized by dbutils.notebook.run() when running from a workflow/jo</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142371#M51933</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/201703"&gt;@siva_pusarla&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to convert env_setup into repo-based code and control behavior via environment&lt;/P&gt;&lt;P&gt;Instead of a workspace notebook, use a Python module in the repo and drive environment differences using:&lt;/P&gt;&lt;P&gt;Job parameters&lt;/P&gt;&lt;P&gt;Branches (dev / test / prod)&lt;/P&gt;&lt;P&gt;Secrets (workspace-specific)&lt;/P&gt;&lt;P&gt;Example repo structure&lt;/P&gt;&lt;P&gt;repo/&lt;/P&gt;&lt;P&gt;├── common_utils/&lt;/P&gt;&lt;P&gt;&amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;└── env_setup.py&lt;/P&gt;&lt;P&gt;└── app.py&lt;BR /&gt;Example:&lt;BR /&gt;env_setup.py&lt;/P&gt;&lt;P&gt;from databricks.sdk.runtime import dbutils&lt;/P&gt;&lt;P&gt;def load_env(env):&lt;BR /&gt;if env == "dev":&lt;BR /&gt;return {&lt;BR /&gt;"catalog": "dev_catalog",&lt;BR /&gt;"password": dbutils.secrets.get("app-secrets", "db-password")&lt;BR /&gt;}&lt;BR /&gt;if env == "test":&lt;BR /&gt;return {&lt;BR /&gt;"catalog": "test_catalog",&lt;BR /&gt;"password": dbutils.secrets.get("app-secrets", "db-password")&lt;BR /&gt;}&lt;BR /&gt;if env == "prod":&lt;BR /&gt;return {&lt;BR /&gt;"catalog": "prod_catalog",&lt;BR /&gt;"password": dbutils.secrets.get("app-secrets", "db-password")&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;app.py&lt;/P&gt;&lt;P&gt;from common_utils.env_setup import load_env&lt;BR /&gt;from databricks.sdk.runtime import dbutils&lt;/P&gt;&lt;P&gt;env = dbutils.widgets.get("env")&lt;BR /&gt;config = load_env(env)&lt;/P&gt;&lt;P&gt;print(f"Running in {env}, catalog = {config['catalog']}")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 16:43:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142371#M51933</guid>
      <dc:creator>Poorva21</dc:creator>
      <dc:date>2025-12-22T16:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: workspace notebook path not recognized by dbutils.notebook.run() when running from a workflow/jo</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142849#M52032</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/201703"&gt;@siva_pusarla&lt;/a&gt;: We use the following pattern and it works,&lt;BR /&gt;&lt;BR /&gt;1) Calling notebook - constant location used by Job.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + src/framework&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ notebook_executor.py&lt;/P&gt;&lt;P&gt;2) Callee notebooks - dynamic&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + src/app/notebooks&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ notebook1.py&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ notebook2.py&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ notebookn.py&lt;BR /&gt;&lt;BR /&gt;Job will send the notebook names as parameter to notebook_executor.py and it will execute notebooks using the below pattern,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;notebook_path = f"../app/notebooks/{notebook_name}"
dbutils.notebook.run(notebook_path, TIMEOUT, input_params)&lt;/LI-CODE&gt;&lt;P&gt;The important learning for us is the usage of &lt;EM&gt;relative path for notebook execution&lt;/EM&gt;.&amp;nbsp;Hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:26:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142849#M52032</guid>
      <dc:creator>siva-anantha</dc:creator>
      <dc:date>2026-01-02T14:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: workspace notebook path not recognized by dbutils.notebook.run() when running from a workflow/jo</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142867#M52037</link>
      <description>&lt;P&gt;I agree with you approach, but I would like to keep my env set-up away from repo. Limiting the repo only to the application code and env-set up close to the environment where the job runs.&lt;/P&gt;&lt;P&gt;In future, I should be able to run the application in various different environments and every time a change in the env should not update the app code in the repo.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 18:56:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142867#M52037</guid>
      <dc:creator>siva_pusarla</dc:creator>
      <dc:date>2026-01-02T18:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: workspace notebook path not recognized by dbutils.notebook.run() when running from a workflow/jo</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142868#M52038</link>
      <description>&lt;P&gt;Hi Siva, thanks for the response.&lt;/P&gt;&lt;P&gt;Yes we use the relative path for calling the notebooks within the repo.&lt;/P&gt;&lt;P&gt;Here I'm trying to call a notebook which is in the workspace from a job that is being executed from repo.&lt;/P&gt;&lt;P&gt;I have ensured all the required permissions but it says "either the notebook doesnot exists or user does not have permissions to run"&lt;/P&gt;&lt;P&gt;I see this behavior starting from last couple of months in 2025.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 18:59:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-notebook-path-not-recognized-by-dbutils-notebook-run/m-p/142868#M52038</guid>
      <dc:creator>siva_pusarla</dc:creator>
      <dc:date>2026-01-02T18:59:54Z</dc:date>
    </item>
  </channel>
</rss>

