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 / UPDATE FILE TO REPLACE...
Power Automate
Unanswered

UPDATE FILE TO REPLACE EXCEL CONTENT

(0) ShareShare
ReportReport
Posted on by

New here, just to post this question

 

so, I have a flow with triggers "When a new Email arrives", from a certain user, with a certain string on subject and with attachments, if those conditions are met, next step is 

Update a file stored on a OneDrive location (not delete, not replace, just update)

 

both the attachment from the email and the target file on OneDrive are excel workbooks, with identical extensions

I have one flow that works beautifully... But I tried to reproduce it exactly for another process, and....

 

I am so annoyed!

the flow actually runs successfully and the file IS actually updated, BUT the result is an excel file with 3KB and unaccesible, I get the error "corrupted file etc etc " when I try to open the excel

the worst is that I reproduced the other working flow exactly, even copied it as template, but the second one just doesnt update the excel file correctly.

Any idea of why?

thanks

manuelm106_0-1633739738956.png

 

 

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    Hi @manuelm106 ,

     

    There may be email signature images which are included in your attachments.  Because they are usually images, you are also saving them as .xlsx hence why you cannot open the file.  You should add a condition to check for filename or file extension equals to .xlsx etc.  

     

    If you go to your flow history, you should see maybe the attachment loop running more than once.  The last attachment in the loop is the one causing the issue.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

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 June 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 1

#2
11manish Profile Picture

11manish 227

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard