cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Create Job Task Using Git Provider Invalid Path

umccanna
Visitor

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

2 REPLIES 2

filipniziol
New Contributor III

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

 





 

 

Hey,  

I am creating the job via the UI. 

  1. I change the Source dropdown to Git provider
  2. Select Add a git reference
  3. Fill out the required info
    1. Url: https://github.com/ExampleAccount/this_is_a_repo_name
    2. Provider: GitHub
    3. Reference: main
    4. Hit Save
  4. Enter in my relative notebook path of 00 - Utilities/this_is_a_notebook_name
  5. Select a Cluster
  6. Hit Save task and I see this error message pop up
    umccanna_0-1727808573637.png

     

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