Save Attachments Activity Breaking

Hi all, I have a problem whereby the uipath “Save Attachments” activity does not work when someone replies an existing email with an attachment. I get this error “Save Attachments: Length cannot be less than zero. Parameter name: length” See Screenshot below

The “Save Attachments” activity works in all other cases besides when someone replies to an existing email with an attachment then I get this error.

Exception details:

RemoteException wrapping System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.Substring(Int32 startIndex,
Int32 length)
at UiPath.Mail.Activities.SaveMailAttachments.d__23.MoveNext()
— End of stack trace from previous location where exception was thrown —
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at UiPath.Shared.Activities.AsyncTaskCodeActivity.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)

Thank you for your help in advance!

Did you solve this issue?

Same problem, any smart solutions?

You need to upgrade the UIPath.Mail.Activities to later version.

See more in this link:
Save Attachment - Length cannot be less than zero - Feedback / Activities - UiPath Community Forum