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 / Excel file corrupted w...
Power Automate
Unanswered

Excel file corrupted when changing name

(0) ShareShare
ReportReport
Posted on by

Hello guys,

 

The idea of process that I want to build is: Get file via outlook -> save to sharepoint -> while saving change to custom name -> use the file to update Power BI report.

 

Where I have an issue is in changing files name. If for "File Name" I use "Attachments Name" everything is fine, but when I enter something custom file gets corrupted. The original file's name is "IE96 Stock Report_28Sep2022_000426.xls" when in this part I try to change to save as Excel.xls:

LukasPocius_0-1664370357861.png

The file gets corrupted:

LukasPocius_1-1664370377836.png

When I open it the data is all messed up. The idea here why I want to rename it because everyday the name of attachment will change so for power bi to use the correct file I want to have a basic naming for it.

 

Categories:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    The reason for the Excel file corrupted is caused by the file extension and file content is not valid

     

    Maybe you could try:

    vchengfenmsft_0-1664437608010.png

     

    Best Regards

    Cheng Feng

  • Community Power Platform Member Profile Picture
    on at

    Hello, I tried both .xls and .xlsx extentions, both give the same result

  • v-chengfen-msft Profile Picture
    on at

    Hi @Anonymous ,

    Could you please try changing the include attachments option on the trigger to YES and on the create file action in the file content instead of directly passing the attachment content pass it in a binary format. For that you can use the expression base64tobinary("AttachmentContent"). 

     

    Best Regards

    Cheng Feng

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 507 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 267 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard