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


#1

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)


How to make my program loop continuously?
#2

Hi,
Please go through https://www.uipath.com/kb-articles/outlook-email-automation


#3

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


#4

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


#5

@Sachin_Ahuja,
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)


#6

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


#7

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


#8

hi @Sachin_Ahuja

Check the account whether the mail is read or unread?

Thanks
Ashwin S


#9

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