Get IMAP Mail Messages - The operation has timed out

Hi,

I’m getting the below error while using the IMAP get mail activity. Please review and suggest some solutions.

Get IMAP Mail Messages: The operation has timed out.

@anandhan

Whay are you using oauth while giving user anme and password?

set it to false

and also can you try changing secure connection to auto

and are you sure about the imap details provided that they are correct?

cheers

Hi @anandhan

Can you try to Increase the TimeOutMS 30000 and check it

Check out this thread

HI @Anil_G \ @Gokul001

Thanks for your response.
I’m still getting the error after modifying the timeout and outh properties. please find the screenshot.

@anandhan

can you change secure connection to auto to check and also are you sure the IMAP details provided are correct?

and are you providing the domain name as well in the username?

cheers

@Anil_G thanks, still I’m getting the same error after modifying the property to auto

Try increasing time out to 60000 ms and can you give a try @anandhan

Increasing timeout option is not working

Hi @anandhan

May I know if it is SSO enabled?

cheers

How to we validate that SSO option is enabled?

@anandhan

Is it a corporate mail?

And do you use your windows password to login to youe email account?

Cheers

It’s not an corporate account, it’a a personal account.

User ID: anand@htc.onmicrosoft.com

@anandhan

Can you try with different port and also with tls

cheers

sorry, it’s not working

@anandhan

Can you open the inner exception details from the locals panel and see what error its showing there…May be we can get more info from there

cheers

Inner exception is NULL

[System.TimeoutException: The operation has timed out.
   at UiPath.Mail.Activities.Extensions.TaskExtensions.TimeoutAfter[TResult](Task`1 task, Int32 timeoutMs)
   at UiPath.Mail.Activities.GetMailActivity.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
   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)]

Hi @anandhan

To check if its imap issue or the mail access can you try using ‘use outlook 365’ activities …

Cheers

Office 365 activity is working fine with Cloud orchestrator. I’m using on-premise orchestraor hence testing the same with IMAP activity.

@anandhan

As one more try…Try setting the SecureConnection to None .That worked for few

cheers

Sorry, still it’s not working.