- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 09:21 AM
I am attempting to create a task in a job using the Git Provider as a source and GitHub is the provider. The repo is a private repo. Regardless of how I enter the path to the notebook I receive the same error that the notebook path is invalid and only absolute paths are supported and must begin with a forward slash (/).
If I attempt to prefix my path with a forward slash I get an error in the UI that git provider paths must be relative and not begin with forward slash.
I have attempted to wrap the path in quotes and I've tried escaping the spaces with a backslash. I've also tried prefixing the path with blob/main or this_is_a_repo_name and neither seem to be working.
Has anyone else experienced this? I can't find an example of the YAML configuration that could be used as an alternative (thinking it may be a UI limitation).
Example of Configuration:
GitHub Repo Path: https://github.com/ExampleAccount/this_is_a_repo_name
Branch: main
Path to Notebook: 00 - Utilities/this_is_a_notebook_name
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 11:16 AM
Like I said in a previous response. This started working automatically a few days ago with no changes on our end. The developer who was working on this decided to try it one more time and it just worked, no error this time. I don't know if Databricks pushed out a fix or what.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 11:40 AM - edited 10-01-2024 11:41 AM
Hi @umccanna ,
how exactly you are trying to create the job?
Are you using databricks asset bundles?
Is your yaml looking like below?
tasks:
- task_key: ExampleTask
notebook_task:
notebook_path: "00 - Utilities/this_is_a_notebook_name"
job_cluster_key: ExampleCluster
git_source:
git_url: https://github.com/ExampleAccount/this_is_a_repo_name
git_provider: github
git_branch: main
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 11:50 AM
Hey,
I am creating the job via the UI.
- I change the Source dropdown to Git provider
- Select Add a git reference
- Fill out the required info
- Url: https://github.com/ExampleAccount/this_is_a_repo_name
- Provider: GitHub
- Reference: main
- Hit Save
- Enter in my relative notebook path of 00 - Utilities/this_is_a_notebook_name
- Select a Cluster
- Hit Save task and I see this error message pop up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 10:18 AM
Any solution to this problem ? I'm too facing the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 11:14 AM
Recently this started working for us with no changes on our side. I'm guessing something was resolved on the Databricks end, but no one notified us of a fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 11:16 AM
Like I said in a previous response. This started working automatically a few days ago with no changes on our end. The developer who was working on this decided to try it one more time and it just worked, no error this time. I don't know if Databricks pushed out a fix or what.

