orchestrator-powershell icon indicating copy to clipboard operation
orchestrator-powershell copied to clipboard

Edit-UiPath Robot BadRequest

Open Xyclade opened this issue 4 years ago • 1 comments

 Edit-UiPathRobot -ID 226  -Password test -Verbose

Results in below error:

 Edit-UiPathRobot : Operation returned an invalid status code 'BadRequest'
 At line:1 char:1
 + Edit-UiPathRobot -ID 226  -Password test -Verbose
 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : NotSpecified: (:) [Edit-UiPathRobot], HttpOperationException
   + FullyQualifiedErrorId : Microsoft.Rest.HttpOperationException,UiPath.PowerShell.Cmdlets.EditRobot

Details of Orchestrator it is being used upon:

URL : https://... WindowsCredentials : True Authenticated : True ApiVersion : 9.0 BuildVersion : 2019.10.15 OrganizationUnit : TenantName : Default AccountName : RequestTimeout : CloudDeployment : None

This error also holds for changing other items such as machine / description

Xyclade avatar Mar 26 '20 10:03 Xyclade

Additional info found:

A similar issue happens in case you try to post to the API when you miss one of the following fields:

  • ProvisionType
  • Type
  • LicenseKey

Xyclade avatar Mar 26 '20 13:03 Xyclade