Hello, I have developed and have been running a series of three unattended bots on servers. While running the workflows for the unattended bots, there is a sequence responsible for getting Outlook messages in a subfolder within Outlook using the “Get Outlook Mail Messages” activity. The process loops and checks the folder once every few minutes in addition to several other subfolders within the Outlook account. Over my last few runs, this sequence will execute flawlessly as it loops, however, there does not seem to be a pattern that I can see, but the bot will randomly throw the “Get Outlook Mail Messages: The specified folder does not exist” error even though it had been successful time and time again within the workflow loop.
I have read other posts on this error that suggest various fixes, but none have seemed to work for me. I am curious if this could be related to a timeout issue for the activity?
I will be glad to provide as much information as I can, any and all help is greatly appreciated.
Thank you!
EDIT 1: Added GEH to the workflow, when the error occurs, this is the info listed
- The operation has timed out.
RemoteException wrapping System.TimeoutException: The operation has timed out.
at UiPath.Mail.Activities.GetMailActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
This description suggests a timeout error. I have adjusted the delay values in the “Get Outlook Mail” activity with no change to the error.
EDIT2: I have tried troubleshooting this issue for the last few days now, still intermittently receiving the System.TimeoutException error. I believe the issue may be at the VM level where Outlook is installed.
Follow up question: If Outlook is installed on a VM and on a workstation and both are logged in as the same Outlook account, Outlook obviously has to be closed on the VM in order for an Outlook workflow to be executed on the VM. Could it also be true that the Outlook workflow can not run on the VM if Outlook is also open on another workstation?