odata/ExecutionMedia/UiPath.Server.Configuration.OData.DownloadMediaByJobId(jobId=jobId)

Hi All,

I’m currently got one project which is to build a simple orchstrator API. The goal is to export recording video.

Right now, I’m trying to used this odata to export the media recording
odata/ExecutionMedia/UiPath.Server.Configuration.OData.DownloadMediaByJobId(jobId=jobID)

but I got this error:

Error: response status is 404

Response body:

{
“message”: “There is no execution media associated with the job.”,
“errorCode”: 2201,
}

The job ID I get from
/odata/Jobs?$filter=Key eq "+key
There is no issue getting the Key

@Saiful,

Error message is suggesting there is no video recording available for that job. The job recordings get’s autodeleted after 3-7 days as per configuration.

Thank you for replying, during my execution, the job that I retrieved job ID from is on the exact same day, I got error code 404, is it possible the issue coming from Job ID?

forget to mention

@ashokkarale

@Saiful,

Yes, it could be because 404 means resource/page not found

@ashokkarale

I already check the based of it which is odata/ExecutionMedia, the respond code is 200 but there is no value from response body

{
“odata.context”: “UiPath”,
“odata.count”: 0,
“value”:
}

But I can download and view from orchestrator directly, why API unable to retrieve any value.

is it something wrong with the API or is there any toggle to give access to download the media using API?

@Saiful,

Try passing a file name in this property as the endpoint is returning a resource.

@ashokkarale
May I know, what the value it should be, is there any rules or anything because when I put any name for the filename, the same thing happens, which is response code 200 and

{
“odata.context”: “UiPath”,
“odata.count”: 0,
“value”:
}

@Saiful,

Let me try and share you the solution.

@ashokkarale
Thank youuu

@ashokkarale

Hi, is there any update on this, or is there any workaround on this?