Email Automation using Mail Package

Hello,

I am trying to run my first email automation process and facing one issue. which i am not able to understand.

This is the error i am getting while i run the project.

For Each Email: Could not load file or assembly ‘System.Linq.Async, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263’. The system cannot find the file specified.

It seems that you have some issues with downloading all required dependencies from external feeds for the UiPath.Mail.Activities or UiPath.MicrosoftOffice365.Activities package version that you are trying to use.

Check if you have this feed https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json in Manage Packages and if is accesible.

I’m having the same issue and this didn’t help, the url already listed, tried to remove the email package and add it again also didn’t help

Provide the UiPath Diagnostic Tool logs for the Activities Issue or raise a support ticket.

Hello,
I’m getting the same thing plus the following in the the error log. I’m lost like a 2nd lieutenant with a map. Thanks!

System.IO.FileNotFoundException: Could not load file or assembly ‘System.Linq.Async, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263’. The system cannot find the file specified. at UiPath.Shared.Authentication.Google.Services.GoogleOAuth2Service.GetTokenKeyFromAccountAsync(OAuth2ConnectionData data)
at UiPath.Shared.Authentication.Google.Services.GoogleOAuth2Service.UpsertTokenKeyAsync(OAuth2ConnectionData data)
at UiPath.Shared.Authentication.Google.Services.GoogleOAuth2Service.<>c__DisplayClass25_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 System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at UiPath.Shared.Activities.Business.ForEachEnumeratorExtensions.IterateAndReturnIfActionExecuted[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, Action1 doAction, Action1 completedAction, Action1 exitAction)
at UiPath.Shared.Activities.Business.ForEachEnumeratorExtensions.Iterate[T](Variable1 enumeratorVariable, NativeActivityContext context, ActivityInstance completedInstance, Boolean exitLoop, Action1 doAction)
at UiPath.Mail.Activities.Business.ForEachEmailX.InternalExecute(NativeActivityContext context, ActivityInstance completedInstance)
at UiPath.Mail.Activities.Business.ForEachEmailX.Execute(NativeActivityContext context)
at System.Activities.NativeActivit

Hii @marian.platonov

I have tried but still not working.

Hii @marian.platonov

I did not install the Microsoft365 package as it was not mentioned in the tutorial. Once I installed and ran the project. it works well.

Thanks you

2 Likes

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