Hi everyone,
I’m currently working with UiPath Studio Web, and I was able to successfully run my automation from Studio Web itself. However, when I tried to execute the same automation from Orchestrator (via a trigger), I encountered the following error:
Your UI Connection could not be found. Please recreate or edit it and retry. UiPath.UIAutomationNext.Exceptions.OrchestratorNotFoundException: Your UI Connection could not be found. Please recreate or edit it and retry. at UiPath.UIAutomationNext.Orchestrator.Rest.HttpResponseMessageExtensions.EnsureSuccessStatusCodeAsync(HttpResponseMessage response) at UiPath.UIAutomationNext.Orchestrator.Rest.OrchestratorService.DoRequestInternal(RetryAuthorizationHttpRequestMessage request, CancellationToken cancellationToken) at UiPath.UIAutomationNext.Orchestrator.Rest.OrchestratorService.DoRequestAsync(OrchestratorRequest orchestratorRequest, CancellationToken cancellationToken) at UiPath.UIAutomationNext.Orchestrator.OrchestratorSystemBucketsService.DownloadFileAsStreamAsync(String bucket, String fileName, CancellationToken cancellationToken) at UiPath.UIAutomationNext.Orchestrator.OrchestratorSystemBucketsService.DownloadFileAsync(String bucket, String fileName, Stream destination, CancellationToken cancellationToken) at UiPath.UIAutomationNext.Services.UserData.UserDataConnectionService.RestoreUserDataFolderAsync(UserDataConnectionRestoreRequest restoreRequest, CancellationToken cancellationToken) at UiPath.UIAutomationNext.Activities.NApplicationCard.RestoreUserDataFolderIfNeeded(ITargetApp targetApp, String connectionId, OrchestratorContext orchestratorContext) at UiPath.UIAutomationNext.Activities.NApplicationCard.GetMainWindowByTargetApp(IActivityContextWrapper context, ITargetApp targetApp, CancellationToken cancellationToken) at UiPath.UIAutomationNext.Activities.NApplicationCard.GetRuntimeData(IActivityContextWrapper context, CancellationToken cancellationToken) at UiPath.UIAutomationNext.Activities.NApplicationCard.OpenOrAttach(IActivityContextWrapper context, CancellationToken cancellationToken) at UiPath.UIAutomationNext.Activities.NApplicationCard.ExecuteAsync(NativeActivityContext context, CancellationToken cancellationToken) at UiPath.Shared.Activities.AsyncTaskNativeImplementation.BookmarkResumptionCallback(NativeActivityContext context, Object value) at UiPath.Shared.Activities.AsyncTaskNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value) at UiPath.Shared.Activities.ContinuableAsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value) at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
From what I understand, the automation is using a UI Connection that works fine with the serverless robot triggered by Studio Web, but it seems to fail when executed by the robot through Orchestrator.
Could anyone please advise:
- Why this UI Connection error occurs only in Orchestrator?
- How can I make sure the correct UI Connection is available when running from Orchestrator?
- Are there differences in how UI Connections are handled between serverless robots and Unattended robots?
Any insights or examples would be greatly appreciated.
Thanks in advance!