I have Build an RPA Process on UIpath Studio and when i run it from the Studio it runs perfect, but when i published it to the Orchestrator and run it from there it gives me an error

I have Build an RPA Process on UiPath Studio and when i run it from the Studio it runs perfect, but when i published it to the Orchestrator and run it from there it gives me an error.

Error :
For Each Email: Authentication attempt took longer than 150 seconds to complete, and was cancelled.

i am using an enterprise licensee.

Hi @ammar.alsulaimani1

Try increasing the timeout settings in the properties panel of the activity Where you are reading all the emails.
image

Hope this helps :slight_smile:

Hey,
you can also check if user which you are use for unattended robot can authenticate to email.
Which activity are you using to auth to email?

I don’t understand what you mean by checking which user is used for unattended robot authentication to email.
the activity I am using is Gsuite application Scope
see the screenshot

first it goes to Gsuite application Scpoe inside that i have a use Gmail activity that has a clientID and Client Secret

i increased the timeout to 1000 but still, the error comes

this is the error :

Authentication attempt took longer than 150 seconds to complete, and was cancelled.

System.TimeoutException: Authentication attempt took longer than 150 seconds to complete, and was cancelled. at UiPath.Shared.Authentication.Google.Services.GoogleOAuth2Service.AuthenticateInternalAsync(OAuth2ConnectionData data, Int32 timeoutMs, CancellationToken cancellationToken)
at UiPath.Shared.Authentication.Google.Services.GoogleOAuth2Service.<>c__DisplayClass24_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Mail.Google.Services.GoogleServiceFactory.AuthenticateAsync(GoogleConnection connection, CancellationToken cancellationToken)
at UiPath.Mail.Google.Services.GoogleServiceFactory.CreateMailServiceAsync(GoogleConnection connection, CancellationToken cancellationToken)
at UiPath.Mail.Google.Gmail.GmailServiceProxy.<>c__DisplayClass41_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Mail.Google.Gmail.GmailServiceProxy.EnsureMailServiceCache(CancellationToken cancellationToken)
at UiPath.Mail.Google.Gmail.GmailServiceProxy.GetFolderFilteredMessages(String folderPath, String account, Object filter, Boolean includeSubfolders, Nullable1 count, CancellationToken cancellationToken)+MoveNext() at UiPath.Shared.Activities.Business.ForEachEnumeratorExtensions.Iterate[T](Variable1 enumeratorVariable, NativeActivityContext context, ActivityInstance completedInstance, Boolean exitLoop, Action1 doAction, Action1 completedAction, Action1 exitAction) at UiPath.Shared.Activities.Business.ForEachEnumeratorExtensions.Iterate[T](Variable1 enumeratorVariable, NativeActivityContext context, ActivityInstance completedInstance, Boolean exitLoop, Action`1 doAction)
at UiPath.Mail.Activities.Business.ForEachEmailX.InternalExecute(NativeActivityContext context, ActivityInstance completedInstance)
at UiPath.Mail.Activities.Business.ForEachEmailX.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

@ammar.alsulaimani1 Hey issue resolved?