Hi ,
I trying to send an email using Send Outlook Desktop Mail Message activity with attachment but getting error “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)).”
Hi @vivek.srivastava ,
Please refer the below topic, follow the steps what they mentioned and see if it works,
Send Outlook Mail Message activity is not working and get the following error
" 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."
Root Cause: The issue is caused by a wrong registry file, this …
If you find this helpful, please mark it as solution.
Happy Automation
@yedukondaluaregala i am using office 365
@vivek.srivastava
Can you try by reparing the micorsoft office, find the below screesnshot and follow the documenation as well,
The UiPath Documentation - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business examples...
outlook, uipath
Happy Automation
Anil_G
(Anil Gorthi)
June 8, 2026, 8:15am
5
@vivek.srivastava
Can you show a screenshot of your activities
Looks like combination of 365 activities you are using are wrong
Cheers
Hi @vivek.srivastava
Try to close or kill outlook process, open and configure profile, repair Office 365, ensure same 32/64 bit.
pls use Send Outlook Mail Message (Modern) to avoid COM dependency.
Happy Automation
Thanks @yedukondaluaregala now i am able to sent mail using outlook desktop mail activity