I began with the “Get Started With RPA Development” course. In the 1st video tutorial I encounter the "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index.
Please see the attached screenshot. I am using the MailMessages(0) index as indicated in the tutorial. Any assistance, will be greatly appreciated.
I had the same error when I went through the tutorial. In the get mail messages activity, there are two checkboxes. One for “MarkAsRead” and one for “OnlyUnreadMessages”.
You get this error on subsequent attempts to run the automation because the bot marked your message as read on the first attempt. Either manually mark your message as unread or uncheck the “OnlyUnreadMessages” box and you should be good to go.
So, Guys All You have to do is that: While you Send the mail to your account put the Subject name as “New Task” (Not in these commas, Okay!) That’s It!
Simple Solution, Reply to me If You get the Output!
Reason:
While taking the First Activity of " Get Data " i.e: GetOutlookMailsMessages, there we had typed
“[Subject] = ‘New Task’” in property tab, → Option Category, → Filter. So, Our Automation will only run when we fulfill the given condition. Or Simpler Way when we follow the above-mentioned Condition.
Thankyou, Have a Nice Day!
I was having the same problem and I found the solution. When typing “[Subject] = ‘New Task’” I had a space between the k and the ’ it looked like this: “[Subject] = 'New Task '”
It was subtle but that extra space makes all the difference.
In the first activity Get Data i.e. GetOutlookMailMessages, Go to the Properties tab > Input > Account, add your account in the expression editor “xyz@uipath.com”