Save Mail Message - UnauthorizedAccessException - Solved

Scenario: Save Mail Message to local folder

Steps to reproduce: In Save Mail Message Activity, select local folder that everyone can write to.

Current Behavior: UnauthorizedAccessException

Expected Behavior:

Studio/Robot/Orchestrator Version: 17.1.6435

Last stable behavior:
Last stable version:
OS Version: Win7 64-bit
Others if Relevant: (workflow, logs, .net version, service pack, etc):

Thanks for all help. I’m running through Lesson 11. I can save IMAP messages to my online gmail account without problems.
When I replaced the “Move IMAP Message” activity with a “Save Mail Message” activity, I get the message below:

I have tried different folder locations and adjusting permissions without success. UiRobot.exe and UiStudio.exe are set to run elevated.

Thanks!

SOLVED: I was only entering the folder path of the second field of “Save Mail Message”. The screenshots below illustrate what I did to fix it. It appears “Save Mail Message” requires a file name in addition to a folder name.

FilePath

FilePath2

In case it helps anyone else, when I left the file extension off and instead used ‘mail.ToString’, the message was saved as “System.Net.Mail.MailMessage”.

Regards,
burque505

4 Likes