Getting Outlook Intermittent Error - The operation has timed out. Any suggestion?

Getting below error intermittently.
System.TimeoutException: The operation has timed out. at UiPath.Mail.Activities.Extensions.TaskExtensions.d__2.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Mail.Activities.SendMailActivity.d__43.MoveNext()
— End of stack trace from previous location where exception was thrown —
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.Shared.Activities.AsyncTaskCodeActivity.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)


Try using it inside a retry scope with a small delay

Or better increase the timeout


Hi Anil, thanks for response. My concern is, even if there is no mail to be read for processing, we are getting this error. And this is an intermittent issue.


For now can you try setting this property and check

And when the error occurs please check the windows event logs which might give more info of what the backend error is

And please check this


Hi @sangram.khuntia

Increase the timeout value in the Send Mail activity properties. By default, the timeout is set to a specific value (e.g., 30 seconds). If the email operation takes longer to complete, you can increase the timeout to allow more time for the operation to finish successfully.


Thank you so much Anil for your input. It helped me a lot to fix the problem. I have increased the timed out value wherever i used outlook activities and the issue got resolved.

1 Like

Thank you so much Nitya for your input. I have increased the timed out value and the issue got resolved.


Happy Automation :blush: