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:ย 

Debugging jobs/run-now endpoint

smpa01
New Contributor III

I am not being able to run jobs/runnow endpoint. I am getting an error as

Error fetching files: 403 - {"error_code":"PERMISSION_DENIED","message":"User xxxx-dxxxx-xxx-xxxx does not have Manage Run or Owner or Admin permissions on job 437174060919465","details":[{"@type":"type.googleapis.com/google.rpc.RequestInfo","request_id":"4f01cd16-ed00-4b2b-bc4d-6f24a0ca76a9","serving_data":""}]}

smpa01_0-1744904979789.png

But I am clearly the owner, what could be possibly causing this

smpa01_1-1744905123010.png

Thank you in advance.

 

4 REPLIES 4

Renu_
Contributor

Hi @smpa01, make sure the API token or authentication you're using is linked to the account that has the necessary permissions on the job. You can also try running the job directly from the Databricks UI, if it works there but not via the API, it indicates an issue with the authentication or token.

If the issue still persists, Iโ€™d recommend, reach out to Databricks Support for further investigation. 

smpa01
New Contributor III

When I run via UI, it runs error free. But I can't run it through API, which I need for advanced workflow orchestration.

aayrm5
Honored Contributor

Hey @smpa01 - when you run via the UI, it's you (user) who run the workflow, and it's estabished that you're the owner of the workflow, so no issues there. The PAT does it belongs to you or a SP? that's where the issue is, if the PAT token is for a SP, try adding that service principal to the permissions with atleast run permissions. This should resolve the issue.

Let me know your thoughts.

Riz

aayrm5
Honored Contributor

Hi @smpa01 - The PAT you're using belongs to Service Principal or your personal token? If SP, it should have permissions to run the DBX workflow. 

Let me know if any questions.

Riz

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