web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Gettin an error messag...
Power Automate
Answered

Gettin an error message when email attachments to be saved to OneDrive

(0) ShareShare
ReportReport
Posted on by 12

Hello all,

 

I have used PowerAutomate's "Save Outlook.com email attachments to your OneDrive" template to set up email attachments to be saved to OneDrive.

It works well up to the point where the files are saved to OneDrive, but when I try to open the saved files (mostly PDFs), I get an error message and cannot open them.

The same error appears when I download/save the file to my PC and then open it.

When I check the attachment from my Outlook email, I can open it with no problem.

Is anyone else experiencing similar symptoms?

Also, if you have a solution to this problem, please let us know.

Thank you in advance.

 

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,656 Super User 2026 Season 1 on at

    Hi @Zaji_554 ,

     

    I have tried the same but for me its working.Please find the below solution.

    VishnuReddy1997_0-1718253497733.png

     

    Code:

    Outlook.Launch Instance=> OutlookInstance
    Outlook.RetrieveEmailMessages.RetrieveEmailsAndSaveAttachments Instance: OutlookInstance Account: $'''vishnuvardhan.reddy@acme.com''' MailFolder: $'''Inbox''' EmailsToRetrieve: Outlook.RetrieveMessagesMode.Unread MarkAsRead: True ReadBodyAsHtml: False SubjectContains: $'''PDF attachment''' SaveAttachmentsInto: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\Practice\\Outlook''' Messages=> RetrievedEmails

     

    Can you provide the screenshot of your flow.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

  • Zaji_554 Profile Picture
    12 on at

    Hi, @VishnuReddy1997 

    Thank you for your reply,

    I will show you the code, following below,

     

    スクリーンショット 2024-06-13 145836.png

     

    and, the error message, is following below :

    スクリーンショット 2024-06-13 150129.png

    thank  you for your help,

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2026 Season 1 on at

    Hi @Zaji_554 ,

     

    Please find the solution.Try to replicate the same.

    VishnuReddy1997_0-1718260346505.png

    VishnuReddy1997_1-1718260405500.png

     

    NOTE: Please try with Different PDf once.

     

    Next time when your Posting Power Automate cloud related Post,Please Post in Cloud Community.

    link: https://powerusers.microsoft.com/t5/Building-Flows/bd-p/BuildingFlows 

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

     

  • Verified answer
    Zaji_554 Profile Picture
    12 on at

    Hi, @VishnuReddy1997 

    Thank you for reply, I'll try your advice.
    When it doesn't work, I will post it in the guided community.

    Many thanks,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard