cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Dbutils.notebook.run command not working with /Repos/

dannythermadom
New Contributor III

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

6 REPLIES 6

UmaMahesh1
Honored Contributor III

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.

@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..

UmaMahesh1
Honored Contributor III

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.

yogu
Honored Contributor III

hi @Danny Davis​ plz check your notebook should br present in that path and mention correct path

dannythermadom
New Contributor III

 @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..

cubanDataDude
New Contributor II

I am having a similar issue... 

 

ecw_staging_nb_List = ['/Workspace/Repos/PRIMARY/UVVC_DATABRICKS_EDW/silver/nb_UPSERT_stg_ecw_insurance',
                 '/Repos/PRIMARY/UVVC_DATABRICKS_EDW/silver/nb_UPSERT_stg_ecw_facilitygroups']
 
Adding workspace did not help.