Unable to read recalled emails using Get Outlook Mail Message activity.
Issue:
UiPath Robot fails to read Recalled emails using Get Outlook Mail Message activity
Root cause:
The purpose of Recall of messages is to ask client to delete the email you just sent. By default, Outlook will delete the email message if the recipients haven’t read it yet. Since Outlook checks and tries to remove the existing email and if bit was already read, the recall notification itself disappears. This will cause the Robot to fail if it tried to access the same recalled message.
Errors:
Commonly encountered error:
"Get Outlook Mail Messages: Specified cast is not valid."
Resolution/Workaround:
As of now, we do not have any specific official activity to achieve the desired outcome.
However to avoid recalling of emails, one could follow the below approach:
- Create a dedicated Mail Folder for UiPath Robot to avoid recalling of Emails and receive only business requirement specific emails by creating rules on emails.
- Disable the recalling feature of Emails from Outlook desktop application, refer to this post .