'Using outlook app' issue in Studio community version

Till last week, my UiPath community version was running smoothly Desktop Outlook App. but today its not working and gives below error:

23.8.0-beta.13817+Branch.release-v23.8.0.Sha.120cd3ec54f082511b48105e2cfb52f8897346a8

Source: Use Desktop Outlook App

Message: Unable to cast COM object of type ‘System.__ComObject’ 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: Element not found. (0x8002802B (TYPE_E_ELEMENTNOTFOUND)).

Exception Type: System.InvalidCastException

System.InvalidCastException: Unable to cast COM object of type ‘System.__ComObject’ 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: Element not found. (0x8002802B (TYPE_E_ELEMENTNOTFOUND)). at UiPath.Mail.OutlookAPI.<>c.<.cctor>b__38_0()
at UiPath.Mail.OutlookAPI.GetApp()
at UiPath.Mail.OutlookAPI.InitOutlook()
at UiPath.Mail.Outlook.OutlookAccountWithStoreDetectionService.GetLocallyMappedStoreAccounts()
at UiPath.Mail.Outlook.OutlookAccountWithStoreDetectionService.GetAccountInformation(String accountWithStoreName)
at UiPath.Mail.Activities.Business.OutlookApplicationCard.ExecuteAsync(NativeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskNativeImplementation.Execute(NativeActivityContext context, Func`3 onExecute, BookmarkCallback callback)
at UiPath.Shared.Activities.AsyncTaskNativeActivity.Execute(NativeActivityContext context)
at UiPath.Mail.Activities.BaseMailAsyncNativeActivity.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)

i created a blank project and added the activity in that and when i click the dropdown to select account, the dropdownalso doesnt work. i updated the package as well but still nothing

Hi @zeesh19791 ,
Can you share your image about your activity?

Have a view on this thread where similar error was discussed

Cheers @zeesh19791

Thanks but in that thread the reason is "Interface not registered’ and in my case it is “Element not found”
i didnt do any upgrade/update of ms office

No it’s actually about the same

It’s ok
But this error can possibly occur if there any recent update to Microsoft Office has corrupted the registry entry for the Outlook Application class.

Use repair tool to get this fixed

Even the above link did changes with registry to get this fixed

Cheers @zeesh19791

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