Move Mail Activity Does Not Throw An Error When Emails Are Not Actually Moved

Move Mail Message does not throw an error when the move is not successful. Some emails are moved, some emails are not.

Description: This is regarding the Move Mail activity from the UiPath.MicrosoftOffice365.Activities package. If some mails are moving as expected and the issue is with only few messages, the set up and permissions in Azure might be correct.

Root Cause:

The MicrosoftOffice365 Application is defined on Azure, which means that UiPath performs API calls to the endpoint and sends commands/retrieves responses. If the Azure endpoint is not throwing any error, UiPath has received an OK from Microsoft/Azure that our request was sent and they will process our API call. Investigate with Microsoft if the API call is successful, but the action is not performed.

Workaround:

If the mails are moved on a retry, follow this workaround:

Once the Move Mail activity is executed, include some code snippet which checks the destination folder and confirm if the move happened or not. Also use the retry scope activity. This might add an overhead if a large number of emails are possessed.