RemoteException wrapping System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at lambda_method(Closure , ActivityContext )
at Microsoft.VisualBasic.Activities.VisualBasicValue1.Execute(CodeActivityContext context) at System.Activities.CodeActivity1.InternalExecuteInResolutionContext(CodeActivityContext context)
at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance, Activity1 expressionActivity) at System.Activities.InArgument1.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance activityInstance, ActivityExecutor executor)
at System.Activities.RuntimeArgument.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance targetActivityInstance, ActivityExecutor executor, Object argumentValueOverride, Location resultLocation, Boolean skipFastPath)
at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument, Int32 nextArgumentIndex, ActivityExecutor executor, IDictionary2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate) at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary2 argumentValueOverrides, Location resultLocation, Int32 startIndex)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Do you happen to have a sample project reproducing this issue? Additionally, when you are getting the outlook message, is there an object being retrieved?
I’m getting the same exact issue as @Hisham_Alshareef. I have tried debugging and also I’ve tried tying the code you provided. I’ve uninstalled UiPath Studio and re installed it and tried the whole process over again from scratch and I haven’t had any progress. Is there something else that could be wrong by any chance?
I have the same issue, but only with certain mail messages but all having attachments. The count is 1 I can view the mail message properties and when it moves to save attachments I get the error. But I see where the attachment is part of the mail message within the message properties. Mail Package version: 1.12.3. It appears to be a bug with certain mail messages with the UiPath platform. As I can download the attachment manually but UiPath cannot even though it appears nothing is wrong with the mail object.
Could you please post a sample xaml file that reproduces your issue or enough screenshots for us to try to reproduce? (also of the email, if you can blur any sensitive information)