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 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
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)