Timeout on GetOutlookMailMessage acitivity


Iam getting a Timeout exception on executing GetOutlookMailMessage activity.

Please find below the error :

Get outlook mail messages: The operation has timed out.
15:55:20.0000 => [INFO] [UiPath.Studio.Shared.Logging.OutputLogger] [21] Some Exception occured : \n System.TimeoutException: The operation has timed out.
at UiPath.Executor.WorkflowRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.InvokeWorkflowFile.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)

I tried by increasing the timeout property of this activity.Still Iam getting this exception

Hi there @maria.josephina,
Are you receiving an Outlook Security warning when attempting to execute the activity?

If so, you may need to review the Programmatic access to Outlook:

Thanks in advance,

Getting this error when try to access the outlook mail messages
@Mr_JDavey also not receiving any outlook security warning

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.TimeoutException: The operation has timed out.
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Hi all,

It was an issue with the outlook configuration.

It was always trying to connect Online to Microsoft exchange.
When the configuration is changed (like working offline), the GetOutlookMailMessage activity works.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.