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 / Attachment won't open ...
Power Automate
Unanswered

Attachment won't open in outlook

(0) ShareShare
ReportReport
Posted on by 9

Hi!

 

I've been trying to create a flow which takes responses form a form, uses them to populate a template, creates a new document from that template and emails the document to the person who submitted the form.

 

My flow works except that when I try and open the attachment from outlook I get the following error messages:

Error Message 1.jpeg

Error Message 2.jpeg

When I try to open the document from Windows Explorer there are no issues with it.

 

Here as a screenshot of my flow:

 

Flow.jpeg

Any idea where I might be going wrong?

 

Categories:
  • grantjenkins Profile Picture
    11,063 Moderator on at

    In your Send an email action - Are you sure you should be adding your file content inside a base64 expression? I'd assume it's already in the correct format. I'd also confirm that you have the correct file extension (docx) as part of your file name.

  • Agers_88 Profile Picture
    9 on at

    Screenshot (4).png

    Thanks @grantjenkins 

     

    I think so (sorry I'm quite new to this!).  If I look at the box in the attachments Item it says:

     

    [

     

      {

            "Name": <THERE IS A LINK TO THE DYNAMIC CONTENT HERE>

            "ContentBytes": "base64(body('get_file_conent_using_path'))

       }

     ]

     

    The document is also named in .docx format.

  • grantjenkins Profile Picture
    11,063 Moderator on at

    It looks like you're only sending the one attachment via email which is the output of the Word Template.

     

    In that case, you can just use the output directly from the Microsoft Word document as shown below.

    grantjenkins_0-1697975311195.png

     

    Or, if you wanted to create a new file from the Word Template and use that content, you can do the following.

    grantjenkins_2-1697975788575.png

  • Agers_88 Profile Picture
    9 on at

    Thanks agian.  For some reason using that flow I get the same issue.  I wonder if perhaps it could be an issue with the word template itself rather than the automate flow so might be worth creating it again from scratch to see if that helps!

  • Agers_88 Profile Picture
    9 on at

    It doesn't seem to be an issue with the word file as if I attach it in an email outside of the Automate Flow the file opens perfectly from Excel so I'm not sure what it is in the flow causing the issue

  • Agers_88 Profile Picture
    9 on at

    I have done some more experimenting on this.  There defintely seems to be an issue with how the flow is attaching the document.

     

    If I save the attachment and try and open it outside of outlook I get the same error messages however if I open the underlying file directly (i.e. the version created by the Create File task rather than the attachment version) it opens perfectly.

     

    Any other ideas?  

  • grantjenkins Profile Picture
    11,063 Moderator on at

    Did you try to just use the output from the Populate a Microsoft Word template? I'd also try typing the name of the file including the extension (.docx) manually as I've done below to confirm it's correct.

     

    grantjenkins_0-1698155275818.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard