Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Power Automate flow corrupting uploaded attachments for some users.

(0) ShareShare
ReportReport
Posted on by

Using flow to insert data and attachments from Power Apps web part to document library.  For some users, the flow is corrupting attachments when uploading, and when I try to open, I get this message: “Hmm… looks like this file doesn’t have a preview we can show you.”

 

In my Power App, here’s the code that I use to send to the flow:

ForAll(myUploadAttachment.Attachments,

    myUploadComposePAV2.Run(

        UploadTitleTextBox.Text,

        YearDropDown.Selected.Value,

        MonthDropDown.Selected.Value,

        CurrentUserTextBox.Text,

        {

            file: {

                contentBytes: Value,

                name: Name

            }

        }

    )

);

 

In my Power Automate flow, I have the following:

- PowerApps (V2):  List all my inputs.  Including “File Content”

- Create File: I have my Site Address, Folder Path, File Name = file.name, File Content= File Content

- Update file properties: I have my Site Address, Library Name, id = Itemid, Uploaded Title= UploadedTitle, Year Value = Year, Month Value = Month, Uploaded By: Uploaded By

- Respond to a PowerApp or flow

 

Again, the corruption is caused by some users, but not all.  

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow