Get outlook mail messages : The specified folder does not exist

Hi!

I’m Kyung-hoon

I succeeded after changing the value of mailfolder in the property panel.

Thanks a lot!

Hi there,

I tried using the workflow but didnt have any success.

Would you know what seems to be missing?

Or is there any sort of set-up that needs to be done on my machine?

Thanks!

Hi Experts,

I am also facing the same issue " Get outlook mail messages : The specified folder does not exist".
I have Outlook2016 in my machine.

Even with the default downloaded assignment in foundation tutorial.

  1. Tried with and without account name.
  2. Tried suppling different forlder names

But the error remains the same. Is there any outlook setting that has to be there for it to work?

Hi @parshantgarg,

Could you upload your workflow…

Thanks for quick reply , PFB the workflow screen shot…

1 Like

@parshantgarg Try putting “Inbox”.ToString and see if that works. Let me know.

1 Like

Hi @Haich

Still the same error:

Main has thrown an exception

Message: The specified folder does not exist

Source: Get outlook mail messages

Exception Type: ArgumentException

System.ArgumentException: 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)

1 Like

@parshantgarg What version of outlook have you got installled?

Hi All,

Same issue ROBO is working fine from last 4-5 months all of sudden issue occurred
Addin few people usually provide solutions
@badita @ClaytonM @aksh1yadav

Hi,

i am getting the same issues i have used this activity before and many time i have put Inbox only but its not working can any one please let me know what should be the issue under MailFolder i have Given “Inbox” and under account i have given nothing

Hi,

  1. Close the Outlook
  2. Open it using “Run as Administrator”
  3. Execute the program.

Let me know if it works for you. I was facing the same issue and it gave me the way to read outlook.

Regards
Vivek S.

4 Likes

Try this…

  1. Close the Outlook
  2. Open it using “Run as Administrator”
  3. Execute the program.
2 Likes

inbox not inobx

1 Like

@Money,
That is just a typo error , even after changing that issue was same.
Solved by re-installation of outlook

1 Like

How to read mail content ?

1 Like

Hi Money,

Whenever you going to store the mail in any variable then use the following code to get the data

for E.g.
foreach Mail in arrMails
{

  1. print subject → Mail.Subject.ToString()
  2. Print Body → Mai…Body.ToString();
    }

Thanks
Vivek S.

1 Like

I had the same issue. My outlook was being run as administrator however when I just ran it as non administrator it worked. Best of luck

I had same issue and solved by running as administrator.
Thaks a lot.

However, I do not understand Why does not the UIPath authorities intervene ? Many subjects related this error and I lost so much time to find the answer to this error.

Please more attention

4 Likes

I have the same problem. But for me it works fine when the folder is just “Inbox”, but not when its the subfolder “Inbox\MexicoMasterData”.

Running outlook as administrator does not work.

image

2 Likes

Same issue here :tired_face:

I’m trying to retrieve emails from a shared mailbox I have access to and is mapped in Outlook.

I’ve tested against multiple inboxes and sub folders but all return the same error. Workflow works if I clear the Account field so that it retrieves the emails from mailbox of the logged in user.

Further testing confirmed if I launch Outlook using an alternate mail profile with the desired shared mailbox as the default, then the emails are successfully retrieved.

Is there any investigation into this regression from UIPath?

image

1 Like