How to resolve the problem noticed "Value cannot be null" in Get Exchange Mail Activity?
Using “Get Exchange Mail” activity, when trying to retrieve emails having “From” or “Sender” address as blank, the below error is reported
"UiPath.Mail.ExchangeException: Value cannot be null.
Parameter name: address"
Parameter name: address"
Root Cause:
Get Exchange or Get IMAP uses Mircosoft Standard API's to retreve/send (only for Exchnage) which follows an RFC Standard (rfc822 protocol)
As per the protocol, from address needs to be an valid address and it cannot be null
Reference Links
Resolution:
- Setting up rules in Exchange server, not allow sending emails without having a valid Sender address
- Use Get Outlook Mail Message activity, as Outlook converts the address to a string value.