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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / File becoming corrupte...
Power Automate
Unanswered

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
    68,707 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
    68,707 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
    68,707 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard