I am using get exchange mail messages and i mails containing attachment of different format (Excel, word, zip and pdf).
my automation is running fine until now, where i am getting emails with attachment containing password. i am not intending to open the attachment but just want to save this in a folder. seems like this activity does not work when the mail has password protected attachment. I cannot give password as there are many mails.
I am getting error get exchange mail message: one or more error occurred. (the attachment cold not be opened). (the attachment could not be opened)
it seems like this activity opens the attachment hence this error. Is there any alternative way to handle this.
@veeresh.p Get Exchange Mail Messages may fail when it encounters password-protected attachments because it tries to access the attachment while loading the email. Even if you only want to save the file, the activity can still throw this error before processing continues.
You can try handling it this way:
retrieve the emails first
save attachments in a separate step
wrap attachment handling in Try Catch so one protected file does not stop the whole run
i have used try catch .. I need the password protected file to be saved. is there any other way to just save the file in a folder so the downstream application can pick the file.
wondering how come UiPath cannot download the files which are password protected.
Get IMAP Mail List activity: Fetch emails. Set the filter to narrow down to the specific email containing the PDF
Use the Save Attachments activity within a For Each loop to save the PDF file to a local folder. Filter the attachments by “*.pdf” to only save PDF files
Install the UiPath.PDF.Activities package if not already installed