Error occurred when using the DownloadPackage api

Hi Talents,

I’m trying to download packages from orchestrator via API call. But an error has occurred.

It is not a package specific problem. I tried to download other packages and the error is the same.

Please give me some hint on how I can avoid this problem.

Thanks in advance!
Sida

1 Like

@1111141

Check below thread for your reference

Hope this will help you

Thanks

1 Like

Hi @1111141

Have a view on below documentation!

https://docs.uipath.com/orchestrator/v2019/reference/packages-requests

Video Reference

Regards

1 Like

Hi Pravin,

I’ve added a X-UIPATH-OrganizationUnitId in the header, but the error is still there.

I got this X-UIPATH-OrganizationUnitId from the /api/FoldersNavigation/GetAllFoldersForCurrentUser api. Is this the correct way to get this id?

Thanks,
Sida

Hi @1111141

I don’t have much exposure in API!

May be @ppr @Yoichi @kirankumar.mahanthi1 will help you with this case!

Regards

Hi Srinivas,

I think my request is mostly correct, just missing a header X-UIPATH-OrganizationUnitId. I’ve added it but I’m still getting error.

Thanks,
Sida

have a check on swagger for the next prototype round
https://docs.uipath.com/orchestrator/reference/api-references

Hi,

Based on the screenshot i am not sure whether we are using the correct package key or not.

Please look at the sample API call to download the specific package from orchestrator.

https://cloud.uipath.com/odata/Processes/UiPath.Server.Configuration.OData.DownloadPackage(key=‘add_queue_items:1.0.6654.27080’)

in this example package name - add_queue_items and version - 1.0.6654.27080

in my opinion you are entering package key wrongly i guess. if you want to download the package you have to specify the package name with the version( you could find these details in the orchestrator package section). please refer the below documentation from uipath for better understanding. Thanks.

https://docs.uipath.com/orchestrator/reference/packages-requests

1 Like

Yes! this is exactly the reason. I was using release key rather than process key.

Thank you so much Kirankumar!

1 Like

your most welcome. Nice connecting with you.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.