gitazure-devopsdatabricksdatabricks-reposmagic-command

Unable to run secondary notebook from Azure DevOps repo in Databricks due to 'file not found' error


I have my Azure DevOps repo cloned into Databricks. I'm trying to run the %run on a secondary notebook in the repo. When I attempt to execute the %run command on the secondary notebook, I consistently receive a file not found error.

I'm working on the main branch of my repository, and all changes have been committed. Could anyone suggest what might be going wrong here? Am I perhaps overlooking some specifics related to path formatting in Databricks or Azure DevOps? Any insights would be greatly appreciated.

I've been using the absolute path to the file, which I obtain by copying directly from the file in question, following this format:

/Repos/[repoName]/[folder1]/[folder2]/[notebookName]

However, the system returns the following exception:

Exception: File `'/Repos/[repoName]/[folder1]/[folder2]/[notebookName]'` not found.

Solution

  • Using relative path ../[folder2] worked.