MarketplaceStudioSolutionNuGet package uploading script

Create your first automation in just a few minutes.Try Studio Web

NuGet package uploading script

NuGet package uploading script

by Internal Labs

2

Solution

Downloads

254

Manish Soni
Posted 4 years ago

The script ws working till 2020. Moreover we recently upgraded the Orchestrator to 2021. And then it stopped working. 

Below is the erroe message : 

{"message":"Failed to read the request form. Form section has invalid Content-Disposition value: ","errorCode":0,"resourceIds":null}

Cristian Nicolae Zachiteanu
Posted 4 years ago

Hi Hideaki,

If you are updating the script you can also explore the new option to publish in the Folder package feed. Right now I can't see the Folder option in your script.

Regards.

Hideaki Fujiwara
Posted 4 years ago ago

Hi Cristian,

Thanks for your feedback.

I will add the Folder option in the next release.

Best regards,

Hideaki

PRAVAT PARHI
Posted 5 years ago

Hi Hideaki,

While running this script in power shell I am getting "The remote serverreturned an error: (400) Bad request" everytime .

Can anyone help me on this?

Thanks & regards,

Pravat

Hideaki Fujiwara
Posted 5 years ago ago

Hi Pravat,

Thank you for your feedback.

I'm aware of the issue that the current script doesn't work with the Cloud Orchestrator or v2020.10 on-prem Orchestrator.

I need some time to upload a newer version to pass the examination.

For the meantime, please modify the following lines in the script then try again.

#AS-IS

$beginBytes = [System.Text.Encoding]::UTF8.GetBytes("--${boundary}`nContent-Disposition: form-data; name=""uploads[]""; filename=""$pkgName""`r`nContent-Type: application/octet-stream`n`n")

$endBytes = [System.Text.Encoding]::UTF8.GetBytes("`n--${boundary}--`n")

#TO-BE

$beginBytes = [System.Text.Encoding]::UTF8.GetBytes("--${boundary}`r`nContent-Disposition: form-data; name=""uploads[]""; filename=""$pkgName""`r`nContent-Type: application/octet-stream`r`n`r`n")

$endBytes = [System.Text.Encoding]::UTF8.GetBytes("`r`n--${boundary}--`r`n")

Milind Pawar
Posted 5 years ago

Hi Hideaki,

Firstly thanks for the wonderful script.

The script worked perfectly for me it showed success and Done message.

However, when I refreshed my orchestrator page the uploaded new nuget package using script was not found.

Can anyone help me on this.

Nithin Prabhu
Posted 5 years ago

Hi, Hideaki,

Thank you for this script it's a life saver ! I have a small request. We generally use custom components in almost all of our engagements, hence we would like to have the ability to bulk upload libraries as well. Could you please add the 'POST /odata/Libraries/UiPath.Server.Configuration.OData.UploadPackage' call to this, should be quick and its a small change but will complete this script.

Thanks & Regards,

Nithin

Hideaki Fujiwara
Posted 4 years ago ago

Hi Nithin,

Thanks for your feedback. And sorry for being a late reply.

I will add the Library option in the next release.

Best regards,

Hideaki

Kamil Wojciechowski
Posted 5 years ago

Hi Hideaki! Can you add Active Directory Account credentials ability to use? Arigato!

Hideaki Fujiwara
Posted 5 years ago ago

Hi Kamil,

I have added Windows Authentication support to v1.0.1. Please use -windowsAuth $true option.

Lakshman Ganta
Posted 5 years ago

Hi Hideaki,

Will it work with Cloud Orchestrator also ?

Hideaki Fujiwara
Posted 5 years ago ago

Hi Lakshman,

I have added Cloud Orchetrator support to v1.0.1.

Publisher

Internal Labs

Visit publisher's page

License & Privacy

License Agreement

Privacy Terms

Technical

Version

1.0.1

Updated

March 2, 2020

Works with

Studio: 21.10 - 22.10

Certification

Silver Certified

Support

UiPath Community Support