Hello,
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)
Activity-configuration:
- ExchangeVersion: Exchange2013
- GetAttachments: YES
- OnlyUnreadMessages: YES
- Top: 50
- Output: Set to variable
- MailFolder: Inbox
- SharedMailbox: XXXXX@XXXXX.de (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):
From: XXXX-XXXXX@XXXX.XXXXX.net
Subject: Unzustellbar: Test
Thread-Topic: Test
Thread-Index: (confidential)
Date: Wed, 4 Dec 2019 14:04:19 +0000
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
Content-Type: multipart/report;
boundary=“000_7073707466696772657880797967696976656670656879787776757”;
report-type=delivery-status
MIME-Version: 1.0
5 posts - 4 participants