Can't Get Outlook Mail Messages

Hi, I am new to Uipath. But I need to build a workflow so that the robot can read my outlook emails. However, when I run the workflow, I get the error as below:

20.4.1

Source: Get Outlook Mail Messages

Message: The specified folder does not exist

Exception Type: System.ArgumentException

RemoteException wrapping 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)


I have tried several solution, but still cannot resolve:

  1. run outlook as admin
  2. try the full path of the mail folder, e.g."//email_address/Inbox/sub_folder_name"
  3. reinstall uipath
  4. reinstall uipath packages(email activity and system activity)
  5. correct typo

Interestingly, my colleagues who use the same laptop model and outlook version can run this workflow, so I am very desperate to know how can I resolve this issue.

Would be very grateful if anyone can help me on this!

Thanks a lot

hi @hihiyou,

The Folder you are trying to Read is not available.

If this is SubFodler - we Write Inbox/SudFolder

image

-
Mukesh

Hey hihiyou. Try to

  • Specify the Account in the properties of ‘Get Oullok Mail Message’ (e.g. “email_address”)
  • Specify the Mail folder in the properties (e.g. “Inbox”)

Did that help you?

Kind regards, Anders

Hi @mukeshkala ,

Thanks for ur help! I have added the subfolder path as you suggested, but it still doesnt work, you can refer to my screenshot below. The masked area is my email account(i.e email address)

Do you know if I have done it correctly ???

Hi @AndersJensen ,

I have specified the email address and the folder path, you can refer to my screenshot below. The masked area is my email account(i.e email address)
Do I do it right??

In Mail folder try to remove the masked and Follow up, so it just says: “Inbox”

Did that work?

If yes, change MailFolder to “Inbox/Follow Up”.

Did that work?

You do not have to specify the Mail address
Ir should be like .

Inbox
or
Inbox/Follow Up
or
Inbox/Folder1/Folder2

Hi @AndersJensen,

Yes, I have tried that as well, but it still has the same error.

Hihiyou

Can you show the Folder structure Created in Box - Under the Account you are trying to Read mails.

Hi @mukeshkala and @AndersJensen

I have changed to this, but it still has the same error. Thanks!
Capture1

Hihiyou

This Looks Fine , Can you share the screeshot of Subfolder from the Outlook Account.

Hi @mukeshkala

My target folder is LogReport

Capture3

Try

“Summary Report\LogReport”

If Summary Report is Inside the Inbox Folder then Try

“Inbox\Summary Report\LogReport”

The Slash Should be \

hi @mukeshkala,

I tried that as well, still not working.

I wonder if theres any other reasons other than syntax error.

Thanks,
Hihiyou

I am wondering if it’s more about the configuration in Outlook / UiPath Studio??? Not sure if it makes sense.

When using Get outlook Mail Messages activity you need to have outlook install and configured with your account in your local machine otherwise it won’t work. Have you done that?

Hi @SamanGuruge ,

my email acct is the only acct configured in my desktop outlook, is there anything else I need to change?

Hi @hihiyou,

The account we are trying to access , is it a default account or additional account.

Additional account to refer to the account you have added on top of the account which is signed in.

If you are not using the additional account - please make the account field blank in properties.


Mukesh

Hi @mukeshkala,

it is an default acct, because I have only logged in one acct on my outlook.

I feel like it’s somehow my uipath cannot access my outlook, but I cant pinpoint what exact reason it can be.

Thanks,
Hihiyou

Can you share a clear screenshot of outlook