Regarding Issue in executing Send Outlook Mail Message activity

Hi All,
I am facing very weird error when I try to attach the excel file for attachment and run the activity, it fails with the following error. Is there any solutions for this?

System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
at UiPath.Mail.Activities.SendMailActivity.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)

Looks like a security issue.

This happened to me when I ran Studio as Administrator. Fixed when ran as a normal user

2 Likes

Hi @vvaidya , @amitbhatt55
How can we catch this error and say retry Sending mail again. As on my system its an intermittent issue. I want to handle this scenario for retrial.
Please help

1 Like

Hi All,

I am also facing the similar issue. UI Path is failing to send emails many times.

Regards,
Sachin

Hi @vvaidya vaidya,

If it is security issue then why it is intermittent ?