cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

%run and Repos path error

indianaDE
Visitor

We have one notebook(N1) which uses the %run command to call a second notebook(N2) which also calls a third notebook(N3) using %run. When running the %run cell within N2, N3 is successfully called and run. When running the %run cell within N1 we  get the error below. These %run commands are using the relative paths ./ to call the subnotebooks (N2 and N3), so that the code is portable between branches:

Notebook not found: Workspace/Repos/user_folder/<DevOps Repository Name>/folder/NB3....

The %run is replacing the user defined name of the Repo, with the actual name of the DevOps repository. This is not the path to N3 which should have the user defined folder name within the path. All other methods to return the absolute path of the NBs (ls, dbutils, os etc. show the correct path). 

Our environment recently received the update which moved the Repo folder under the Workspace folder, is there any chance there was an issue casued there?

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group