1111141
(Sida He)
December 17, 2021, 7:52am
1
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
Srini84
(Srinivas Kadamati)
December 17, 2021, 7:57am
2
@1111141
Check below thread for your reference
Hope this will help you
Thanks
1 Like
1111141
(Sida He)
December 17, 2021, 11:18am
4
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
1111141
(Sida He)
December 17, 2021, 11:26am
6
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
ppr
(Peter Preuss)
December 17, 2021, 11:27am
7
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
1111141
(Sida He)
December 17, 2021, 1:11pm
9
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.
system
(system)
Closed
December 20, 2021, 1:22pm
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.