GetOutlookMailMessages: The specified folder does not exist

Hello,
I have a project where I am using the “Get Desktop Outlook Mail Messages” activity. It works fine in attended mode, but when I publish the RPA and run it in unattended mode, I get this error.

“The specified folder does not exist.”

I have another project running on Orchestrator with the same activity and same configurations, but I am getting this error every time for my current project.
I have tried using “Inbox”.ToString as well, but it didn’t help at all.

I’ll be grateful if you could help me solve this.

Thanks

Hi @Ali_Murtaza

The possible issue is with Outlook application.

1. Try the below solution
Kill the Outlook app using - Kill Process Activity
Open the Outlook app using - Start Process Activity
Perform Get Outlook Mail Message

2. Try to provide your account along with the Inbox
Example: your-account\Inbox

Thanks,
Chethan

1 Like

@Ali_Murtaza,

Make sure Outlook on the unattended machine and user is configured correctly and working.

Make sure the Outlook is Desktop application and not the web version.

Open Outlook application 5-10 seconds before you use any outlook activity in the code.

1 Like

@Ali_Murtaza

Could you please refer below knowledge base from UiPath on same error:

Regards
Sonali

1 Like

Hi @Ali_Murtaza

Outlook may not be fully configured or running, causing the folder error. Make sure Outlook is installed and configured for the unattended robot user. Use the full folder path like “Inbox” or “Top of Information Store\Inbox”. Also, check if the mailbox profile exists for the unattended robot.

If you found helpful please mark as a solution. Thanks
Happy Automation with UiPath

1 Like

Hi Everyone,

Thanks for reaching out to help. But none of the above solutions helped.
I used the Background Process template, which didn’t work even after creating a new solution. I was using the latest complete release, etc.
Then I tried it with the foreground application, and it worked. Don’t know what the true reason might be.

I found similar issue later.

Thanks,
Ali
Happy Automation

2 Likes

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