Activity send email (send mail x) failed: file or folder does not exists

Hi,

I am following the academy tutorial. I am getting an error after following the same steps.
I have selected create a variable instead of save for later shown in the video.

the error message which is showing is :
System.ArgumentException: File or Folder “C:\Users\vedamsh\Documents\UiPath\GettingToKnowStudioX\Energetic Raindrop-Mist” does not exists.
at UiPath.Mail.Activities.Business.AttachmentsUtils.<>c.b__1_4(String x)
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.ToList() at UiPath.Mail.Activities.Business.AttachmentsUtils.GetFilePaths(IEnumerable1 files, AsyncCodeActivityContext context)
at UiPath.Mail.Activities.Business.SendMailX.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)

can anyone help by checking the photos?

Hi @Vedamsh_Vanja
Welcome to UiPath community
You should pass the file path with filename.I think your path is incomplete without filename to attach with mail.check your path

@Vedamsh_Vanja

According to exception this is the path that is being used C:\Users\vedamsh\Documents\UiPath\GettingToKnowStudioX\Energetic Raindrop-Mist

ideally for attachment there should be a filepath with extension as well

cheers

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