Get Outlook Mail Messages: Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))1

Hi,

Kindly help on this issue. I used Get outlook mail messages to retrieve messages from outlook mail inbox, but i get this below error. Please let me know if im missing something.

Get Outlook Mail Messages: Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))

thanks

Hi @Ramesh_S ,
First try this:
This shouldn`t be an issue if the credentials are configured correctly in Outlook.

I`ll suggest two things to do and see if they work:

  1. Update the mail activity package to the latest version (if you`re not using that already). The reason is that the latest version contains quite alot of fixed for various bugs.
  2. Try to make sure that the Outlook Users are configured well.
    A hint for me that thats the source of your troubles is the fact that Outlook keeps asking for your credentials when its open.
    Theres a way to check in Windows how your users are configured, which is to go to : Start -> Type Credential Manager -> choose the Windows Credentials Tab, and look under credentials maked as : "MicrosoftOffice", or the something like your own Mail Server address. something like mail.myownserver.net. There, youll have a username and password for the users that Outlook uses to log on to our mailserver, and if these arent correct, or the right user is associated with an incorrect password, then it wont work.

Please try this and let me know what you find.

Below is the Microsoft article which has some more info on the matter. I hope this helps!

docs.microsoft.com

Outlook prompts for credentials - Outlook

After the password for your domain user account is changed, Outlook 2010 and Outlook 2013 may prompt you for your password. This article describes how to remove older saved credentials to make sure that Outlook uses your current Windows desktop…

If this does not work then

you need to to start Outlook by using “Open Application” or “Start Process” activity in some environments before calling “Send Outlook Mail Message” activity.

Let us know if it worked for you :slight_smile:

Thanks & Regards,
Shubham Dutta

Hi,

Outlook is auto logged in by default. it is signed in always in server.

Regards,
Ramesh kumar

Hey @Ramesh_S,

Have a look on this stackoverflow c# - Exception from HRESULT: 0x80004004 (E_ABORT) - Stack Overflow
image

Regards,
Sanjit

Hi,

I have checked now, both UiPath and outlook are 64bit installation.

Regards,