cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
cancel
Showing results for 
Search instead for 
Did you mean: 

DBR CLI v0.216.0 failed to pass bundle variable for notebook task

larsr
New Contributor

After installing the new version of the CLI (v0.216.0) the bundle variable for the notebook task is not parsed correctly, see code below:

tasks:
        - task_key: notebook_task
          job_cluster_key: job_cluster
          notebook_task:
            notebook_path: ${var.notebook_path}
 
Based on the code above, databricks bundle validate gives the following error: unable to determine directory for job notebook_task: no file in location.
 
The template does work if the notebook_path is defined explicitly (without variable reference) in the template.
 
Could you please provide support on this issue?
 
Regards,
 
Lars
 
1 REPLY 1

Kaniz
Community Manager
Community Manager

Hi @larsr

  • Ensure that the variable ${var.notebook_path} is correctly defined and accessible within the context of your bundle configuration. Sometimes, scoping issues can lead to variable references not being resolved properly.
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.