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 / Creating new excel fil...
Power Automate
Unanswered

Creating new excel file with file system corrupting file

(0) ShareShare
ReportReport
Posted on by 32

I am trying to build a flow that gets an attachment from an email, passes the file to a desktop flow, and the desktop flow will return a path to an excel file that the desktop flow created. I need to use this path to generate the file as an attachment in an email. Everything works smoothly, except the attachment is corrupted when I generate it in an email.

 

This is what my Input looks like: 

dbgghost_0-1710266241281.png

This is what I need my Input to look like: 

dbgghost_1-1710266356077.png

I am using the get file content using path action which I use like this in the send an email action:

dbgghost_2-1710266437923.png 

dbgghost_3-1710266503849.png

I have another flow, which sends the email with attachments using the same process and works perfectly fine. However, in the new flow the output to select has a different name, but same expresssion and I am confused why it is not producing the right input: 

dbgghost_4-1710266679292.png

dbgghost_5-1710266690191.png

In the attachments contents for both flows the expression is: body('Get_file_content_using_path) and body('Get_file_content_using_path_1) so I am unsure what is happening 

 

Any idea why this could be happening?

 

 

 

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

    Hi , @dbgghost 

    Can you try to re-create this action in classic mode in flow?

    vyueyunmsft_0-1710294674065.png

     

     

    Best Regards,

    Yueyun Zhang

  • dbgghost Profile Picture
    32 on at

    I ended up resolving the issue. I changed the view in the action and noticed that the Content Bytes : "Body" was wrapped in quotes and removing them solved the issue. 

    dbgghost_0-1710429257841.png

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard