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 / 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
    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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard