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 Automate
Answered

Create a File

(0) ShareShare
ReportReport
Posted on by 2

Hello all, I have created a flow that when an email arrives with an attachment, that a file (the sent attachment) is created in a shared folder.  My issue is that, once the file is created in the folder it will not open.  The error is depicted below (last image).

Flow 

CHANEYLWC_1-1678299904666.png

 

CHANEYLWC_0-1678299871822.png

Error

CHANEYLWC_2-1678299943120.png

 

Categories:
I have the same question (0)
  • DiegoRB Profile Picture
    32 on at

    Hi @CHANEYLWC 

    You must specify the file extension when you define the File Name.
    For example:

    [Attachment Name].xlsx

    Did I answer your question? Mark my post as a solution!
    If you liked my response, please consider giving it a thumbs up
  • CHANEYLWC Profile Picture
    2 on at

    Thanks, I am not sure if that is it.  Every time t test the the flow, the files download to the folder, but every time I try to open any format doc that is downloaded, it will not allow me to read and gives me error.

  • Verified answer
    v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @CHANEYLWC 

     

    Set the include attachments in the trigger to yes.
    You need to add Get Attachment (V2), select the dynamic content Content Bytes returned by Get Attachment (V2) in the file content field of the Create file.
    And the dynamic content attachment name itself carries the file suffix, you don't need to add the suffix manually.

     

    vliweimsft_0-1678418860500.png

     

     

    vliweimsft_1-1678418860504.png

     

     

    Best Regards,

    Levi

     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard