Access is denied: Outlook Service and UserMode

I am having a strange issue that started over the weekend. I am trying to use an open application scope on Outlook. When I try to run the automation I get the following error:

An error appeared while executing OutlookTest_DEV_ENVIRO Error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACESSDENIED).

I have tried the following.

  1. Installed bot as user mode: Same error
  2. Installed the bot as Service mode: Same Error
  3. Logged onto the bot server and ran both of the above manually from Ui Path Robot: Same Error
  4. Verified outlook application settings where set to
  5. Set Trust Center / Programmatic access to set to Never Warn
  6. All guidance on install guide verified for bot.

Any ideas?

The issue is caused by outlook deciding to run elevated. I checked this after working with the Ui Path team.

I did the following.

  1. Open Task Manager
  2. Go to details tab
  3. right click on headers and choose select columns.
  4. Enable the Elevated Column
  5. click ok
  6. Check to see if the program is question is being run elevated.

If it turns out it is elevated you can use the following code to launch the application so UiPath can still see it.

Dim p As Process = Process.Start(“outlook”)

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