Not able to read email from outlook - [Exception Type: ArgumentException]

Outlook is configured on the workstation with only one account.

Input : Account Field is blank
MailFolder is “Inbox” - Also tried with other folders but it doesn’t work.

Giving below exception:

Main has thrown an exception

Source: Get outlook mail messages

Message: The specified folder does not exist

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)

Please go through Outlook Email Automation

@Sachin_Ahuja,You need to mention the account name so that it retreives mails from that account

1 Like

I tried with adding the account name as my configured email address.
Still getting the same error.

Can you please check if you are logged in to that outlook account, I tried the same thing and it is not throwing any error.
Uploading xaml for your ref.

Main.xaml (4.7 KB)

Do you have outlook installed in your machine with your mail account configured @Sachin_Ahuja

Yes, Outlook is installed on my machine and I am logged in with my email id.

hi @Sachin_Ahuja

Check the account whether the mail is read or unread?

Ashwin S

Is the problem solved? I encounter the same problem in one laptop but no such issue in another one.