cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

i am getting the below error while making a GET request to job in databrick after successfully running it

him
New Contributor III

"error_code": "INVALID_PARAMETER_VALUE",

  "message": "Retrieving the output of runs with multiple tasks is not supported. Please retrieve the output of each individual task run instead."

}Capture

8 REPLIES 8

Debayan
Esteemed Contributor III
Esteemed Contributor III

Looks like the request was malformed (error code: 400) . You can retrieve the details for a single job running GET API.

Please refer: https://docs.databricks.com/dev-tools/api/latest/jobs.html?&_ga=2.42546021.1557771202.1661376549-162...

Could you please provide the body of the request?

him
New Contributor III

Hi debayan ,the body of this request has only job id as key and its value .I am unable to find the solution .can u please provide some other solution to it

CJay
New Contributor III

I believe this is a bug in API 2.1 of Databricks

I had the same issue but after lot of hit and trails I changed the GET url to https://xxxxxxxx.cloud.databricks.com/api/2.0/jobs/runs/get-output?run_id=1863081801 and surprisingly it worked.

Atanu
Esteemed Contributor
Esteemed Contributor

Could you please update the API endpoint you are using so that we can check and update you with the same? @Himanshu yadav​ 

Muni
New Contributor II

@Atanu Sarkar​ I belive he is using https://<databricks-instance>/api/2.1/jobs/get-output?run_id=xxxx

Even we are also facing the same problem while retrieving run status.

Can you please check and let us know?

CJay
New Contributor III

try 2.0 instead of 2.1

esfits
New Contributor II

Same issue...switching to 2.0 resolved it. Thanks @Chandrajeet Singh​ 

SANKET
New Contributor II

Use https://<databricks-instance>/api/2.1/jobs/runs/get?run_id=xxxx.

"get-output" gives the details of single run id which is associated with the task but not the Job.

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.