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 / File becoming corrupte...
Power Automate
Answered

File becoming corrupted in flow

(0) ShareShare
ReportReport
Posted on by 31

Hi,

 

I have built a flow that when a button is hit in power apps sends all information about a project including attachments to the specified user.  The issue I am currently having is in the email where this information is sent file are coming over corrupted.

 

Any ideas on how to correct this.  The section of my flow where i get attachments is shown below.  The items are then attached in the email as a variable.

 

Cjohnson20_0-1659810696063.png

 

Cjohnson20_1-1659810748038.png

 

Thank you

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,246 Most Valuable Professional on at

    I have a flow that does the same thing and everything in yours looks right.  One thing to check is what the actual value being passed to ContentBytes is in the array.  It should be an object that contains a content type and content.  I've seen cases where it only has the Content and not the content type.  That will make it look like the file is corrupt.

  • Cjohnson20 Profile Picture
    31 on at

    Hi,

     

    What should it look like if it is passing through correctly?  This is what i am currently seeing.

     

    Cjohnson20_0-1659961244296.png

     

  • Verified answer
    Pstork1 Profile Picture
    69,246 Most Valuable Professional on at

    Normally it should look like the below image

    image.png

  • Cjohnson20 Profile Picture
    31 on at

    Any suggestions on what could be driving this difference?

  • Pstork1 Profile Picture
    69,246 Most Valuable Professional on at

    Double check what "Body" you are using for the ContentBytes.  It doesn't look like you are using the right dynamic content.

  • Cjohnson20 Profile Picture
    31 on at

    @Pstork1 That was the issue i was able to get it to work yesterday.  Thanks for the help

  • jaaronanderson Profile Picture
    57 on at

    check box or whatever in there to auto-detect file type automatically too

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard