Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • jaaronanderson Profile Picture
    57 on at
    Re: File becoming corrupted in flow

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

  • Cjohnson20 Profile Picture
    31 on at
    Re: File becoming corrupted in flow

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

  • Pstork1 Profile Picture
    65,946 Most Valuable Professional on at
    Re: File becoming corrupted in flow

    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
    Re: File becoming corrupted in flow

    Any suggestions on what could be driving this difference?

  • Verified answer
    Pstork1 Profile Picture
    65,946 Most Valuable Professional on at
    Re: File becoming corrupted in flow

    Normally it should look like the below image

    image.png

  • Cjohnson20 Profile Picture
    31 on at
    Re: File becoming corrupted in flow

    Hi,

     

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

     

    Cjohnson20_0-1659961244296.png

     

  • Pstork1 Profile Picture
    65,946 Most Valuable Professional on at
    Re: File becoming corrupted in flow

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow