cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unable to deploy Databricks Asset Bundle

dbr_data_engg
New Contributor III

Hi Team,

I created a workflow/job and was able to deploy to Dev and Prod workspaces. But now I am unable to deploy job to "Dev" workspace and getting below error, [Also unable to see this job on Databricks UI]

Deploying resources...
Updating deployment state...
Error: terraform apply: exit status 1

Error: cannot read job: User XYZ does not have Admin or Manage Run or Owner or View permissions on job 12345678912312

though I am able to deploy DAB to prod workspace , only facing this weird issue with Dev. 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

I am able to resolve it.

First thing is that a job id can be associated with only one user, I guess it is hard to change owner of job.

If someone is deploying a job created by some else then this issue will come.

Below are the points which you can perform,

1. Delete Bundle from Local IDE and Databricks workspace.

2. Delete workflow from Databricks.

View solution in original post

3 REPLIES 3

fabiobeider
New Contributor II

Hey, I'm facing the same issue
Did you ever get a chance to solve it?

I am able to resolve it.

First thing is that a job id can be associated with only one user, I guess it is hard to change owner of job.

If someone is deploying a job created by some else then this issue will come.

Below are the points which you can perform,

1. Delete Bundle from Local IDE and Databricks workspace.

2. Delete workflow from Databricks.

Addition to it :

If you define mode as 

 
    mode: development
for targets->dev within databricks.yml file then everything deployed to this target gets a prefix   # like '[dev my_user_name]' maintaining uniqueness for the job deployed by individual developers.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now