Bot Error while running the Bots

Hi Team,

We are facing this issue while running the BOT, Current configuration of the System

OS - Windows 10
O365- Account linked with O365

Below are error we are getting while running the BOT

Info Execution error : System.InvalidCastException: Unable to cast COM object of type ‘Microsoft.Office.Interop.Outlook.ApplicationClass’ to interface type ‘Microsoft.Office.Interop.Outlook._Application’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{00063001-0000-0000-C000-000000000046}’ failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)). 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)

Thanks in Advance

Hi @NirmalSomasundaram

Check this post below

Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass'


Also check your json file for the packages being used also the the outlook configuration and reinstall the package.

Check these and get back :slight_smile: