Getting COM error while using Send Outlook Desktop Mail Message

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,

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,

Happy Automation

@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