UiPath CLI Package Deploy bug
Using the UiPath CLI version 22.10.8438.32859, run via GitHub actions:
- CLI said ‘no process exists for this package’ which was incorrect
- CLI tried to create new process, which resulted in conflict / failure
23)_Windows v2.0.131088147 uploading in 0s to feedId :
24)_Windows v2.0.131088147 uploaded successfully in 0s to feedId :
25)Process will be deployed in modern folder.
26)No process exists for this package. Will create one.
27)System.InvalidOperationException: : Operation returned an invalid status code ‘Conflict’
28) at UiPath.Web.Client21_4.Releases.PostWithHttpMessagesAsync(ReleaseDto body, Nullable1 xUIPATHOrganizationUnitId, Dictionary
2 customHeaders, CancellationToken cancellationToken)
29) at UiPath.Orchestrator.Client.Util.ExceptionsHandler.RunWithFriendlyExceptionMessages[T](Func1 func) 30){"message":"The name <Process>_Windows is already used.","errorCode":1001,"traceId":"00-8ed230919dc0f44ab0daab4b7d0de1e4-8354c319853b7e3e-01","resourceIds":null} 31) at UiPath.Orchestrator.Client.Util.ExceptionsHandler.RunWithFriendlyExceptionMessages[T](Func
1 func)
32) at UiPath.Orchestrator.Client.Endpoints.Releases.PostAsync(ReleaseDto releaseDto, Nullable1 xUiPathOrganizationUnitId, Dictionary
2 customHeaders, CancellationToken cancellationToken)
33) at UiPath.CommandLine.Services.Impl.DeployService.createProcessWhenNoEntryPointSpecified(IOrchestratorClient client, UploadedPackageModel package, List1 existingReleases) 34) at UiPath.CommandLine.Services.Impl.DeployService.DeployPackagesInModernFolder(IOrchestratorClient client, UploadedPackageModel package, List
1 existingReleases, List1 validEntryPoints) 35) at UiPath.CommandLine.Services.Impl.DeployService.DeployPackage(IOrchestratorClient client, UploadedPackageModel package, Boolean isModernFolder, IEnumerable
1 targetEnvironmentNames, List1 entryPointPaths) 36) at UiPath.CommandLine.Services.Impl.DeployService.<>c__DisplayClass3_0.<<Run>b__4>d.MoveNext() 37)--- End of stack trace from previous location --- 38) at UiPath.CommandLine.Extensions.EnumerableExtensions.<>c__DisplayClass0_0
2.<b__2>d.MoveNext()
39)— End of stack trace from previous location —
40) at UiPath.CommandLine.Extensions.EnumerableExtensions.SelectParallel[TIn,TOut](IEnumerable1 inputList, Func
2 function, Int32 numberOfObjectsInParallel, CancellationToken token)
41) at UiPath.CommandLine.Services.Impl.DeployService.Run(DeployOptions options)
42) at UiPath.CommandLine.Services.Impl.OptionsParser.<>c__DisplayClass7_0.<b__0>d.MoveNext()
43)— End of stack trace from previous location —
44) at UiPath.CommandLine.Services.Impl.OptionsParser.RunOptions(String args, Func`3 notParsedFunc)
45)Error: Process completed with exit code 1.