Get Exchange Mail Messages - Activity: One or more errors occurred


i discovered a reproduceable bug in the “Get Exchange Mail Messages” - Activity:

When a mail is sent to an non existing receiver, an automatically mail is created by the exchange server that informs about a failed delivery. With THIS mail in the Inbox folder, the acitivty is unable to load mails.
I configured the activity for a “SharedMailBox”.

Can anyone help or confirm the bug?

The following error occurs:
Get Exchange Mail Messages:
One or more errors occurred.

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.AggregateException: One or more errors occurred. ----> System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mail.MailAddressParser.ReadCfwsAndThrowIfIncomplete(String data, Int32 index)
at System.Net.Mail.MailAddressParser.ParseDomain(String data, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data)
at System.Net.Mail.MailAddress…ctor(String address, String displayName, Encoding displayNameEncoding)
at UiPath.Mail.ExchangeMail.MailMessageBuilder.WithFromAddress(String address, String name)
at UiPath.Mail.ExchangeMail.MailMessageBuilder.WithFromAddress(EmailAddress from)
at UiPath.Mail.ExchangeMailUtil.ConvertToMailMessage(EmailMessage exchangeMessage, Boolean saveAttachments)
at UiPath.Mail.ExchangeMailService.GetMessages(ExchangeService service, IEmailFolderService folderService, String fromFolder, String sharedMailbox, Int32 count, Boolean htmlBody, Boolean saveAttachments, Boolean markAsRead, Boolean unreadMessages, CancellationToken cancellationToken)
— End of inner ExceptionDetail stack trace —
at UiPath.Mail.Exchange.Activities.ExchangeScope.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

- ExchangeVersion: Exchange2013
- GetAttachments: YES
- OnlyUnreadMessages: YES
- Top: 50
- Output: Set to variable
- MailFolder: Inbox
- SharedMailbox: (confidential)

Technical details:
Operating system: Windows 10 - Version 1607 (Build 14393.3274) = Win 10 Enterprise 2016 LTSB
UIPath - Version 19.4.4
UIPath.Mail.Activities - Version 1.4.1

Example mail (screenshot from outlook):

Mail-Headers (from outlook):
Subject: Unzustellbar: Test
Thread-Topic: Test
Thread-Index: (confidential)
Date: Wed, 4 Dec 2019 14:04:19 +0000
X-MS-Has-Attach: yes
Content-Type: multipart/report;
MIME-Version: 1.0

Kindly check with this error
it seems like the mail address is not mentioned correctly

Cheers @Dennis0

Thats what i also noticed - but i cannot influence the mail.

I got this error when I passed the folder name. Then what I observed was there were problems with depended packages. Once I fixed all depended packages it started working properly.

Make sure all depended upon packages are available in development as well as in production