cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot %run notebook using relative path

DManowitz-BAH
New Contributor II

In the root of my workspace, I have the following folder structure set up:

/foo
   / ETL
   / setup
   / utilities

From a notebook in /foo/ETL or /foo/setup, if I try to %run a notebook in /foo/utilities by giving the relative path ../utilities/<x>, I get an error "Permission denied: Forbidden".  However, I am able to %run a notebook by giving the absolute path /foo/utilities/<x>.

If I clone this whole structure into my user folder, I also get the same error when trying to use the relative path to refer to my other notebook.

Does anyone have any idea what might be going on?

3 REPLIES 3

User16502773013
Contributor II
Contributor II

Hello @DManowitz-BAH ,

Hope you are doing great, I tried to replicate this behavior on 12.2 LTS runtime and didn't get any errors for the same folder/workspace structure..

Can you share the cluster configuration details so I can mimic exactly the same setup you have so I can replicate the issue and recommend a solution?

Regards

I am on AWS, running a cluster with Databricks runtime 10.4 LTS.

Hello @DManowitz-BAH I also tried in 10.4 LTS and the issue is not  replicatable (shown below) 

Is it possible scripts in utilities are referencing other files that you may not have access to?

Screenshot 2023-08-17 at 2.58.02 PM.pngScreenshot 2023-08-17 at 2.50.59 PM.png

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!