Dbutils.notebook.run command not working with /Repos/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ11-23-2022 05:43 AM
I have two github repo configured in Databricks Repos folder.
repo_1 is run using a job and repo_2 is run/called from repo_1 using Dbutils.notebook.run command.
dbutils.notebook.run("/Repos/repo_2/notebooks/notebook", 0, args)
i am getting the following error
WorkflowException: com.databricks.NotebookExecutionException: FAILED: Notebook not found: Repos/repo_2/notebooks/notebook
Caused by: NotebookExecutionException: FAILED: Notebook not found: Repos/repo_2/notebooks/notebook
- Labels:
-
Command
-
Github Repo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ11-23-2022 06:59 AM
Hi @Danny Davisโ ,
Can you please confirm if you have a notebook in that folder ?
Ideally the path should be in this format if I'm not wrong..
'/Workspace/Repos/<username>/<notebookname>'
If that does not work, please try giving relative paths and check if it works.
- ./name -- for notebook in current directory
- ../name -- for notebook in parent directory
- ../../name -- for notebook in two levels higher
- subdir/name -- for notebook in sub-directory with name subdir
Hope this helps...Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ11-23-2022 07:31 AM
@Uma Maheswara Rao Desulaโ
I ran the same command from a notebook. It ran Successfully.
dbutils.notebook.run("/Repos/repo_2/notebooks/notebook", 0, args)
But doesn't work from one repo to other repo..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ11-23-2022 07:37 AM
Can you please try giving the full path as mentioned above โ
'/Workspace/Repos/<username>/<notebookname>'
If this does not work also please try using relative paths and let me know if issue still persists.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ11-23-2022 07:07 AM
hi @Danny Davisโ plz check your notebook should br present in that path and mention correct path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ11-23-2022 07:31 AM
@Yogita Chavanโ
I ran the same command from a notebook. It ran Successfully.
dbutils.notebook.run("/Repos/repo_2/notebooks/notebook", 0, args)
But doesn't work from one repo to other repo..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ04-15-2024 06:03 AM
I am having a similar issue...

