Outlook Activites not working in 'Background' process


I am having an issue with my unattended background bots.
I can make a simple background process, with only one activity - get outlook mail messages.
I leave it as simple as possible, using a blank account field, and “Inbox”. I test it in studio, and it works fine, the folders are all extracted. It works if I publish it and launch it from the orchestrator if I turn off the background process setting, so an unattended bot can run it find in normal mode.

However, turn background process back on, and Get mail activities continually returns this error when launched from orchestrator:

The specified folder does not exist

at UiPath.Mail.Activities.GetMailActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Nothing I seem to do fixes this, including opening and closing outlook beforem hand, with and without “open as administrator”. This is an issue, as this is part of a much larger Long-running orchestration process.

Thanks for any help!

1 Like

I have the same issue did you find a solution. For me it only does not working with Outlook365 but with Outlook 2013 it is working.

Can you try using Get Exchange Mail Messages activity instead and see if it works? Is there any specific reason as to why you are using the Outlook one?


I will try it but I don’t understand why it is working when I run the whole process activity in UiPath Assistant and it is working but when switching to background unattendant bot from orchestrator it cant find the folder and I get the error message - so strange.

This is working now better than get outlook activities. Don’t understand why.

Yes, I don’t know why either, but I stopped using Outlook, and use Exchange instead, it is much more reliable and faster :slight_smile:

1 Like

When running Background Automations via Unattended Robots, using Microsoft Offce applications such as Word, Excel or PowerPoint might not work properly as they have been built to run in User-Session, meaning that they need an interactive desktop session and user profile.

You can read more here: