Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Creating new excel file with file system corrupting file

(0) ShareShare
ReportReport
Posted on by 30

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?

 

 

 

  • dbgghost Profile Picture
    30 on at
    Re: Creating new excel file with file system corrupting file

    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

     

  • v-yueyun-msft Profile Picture
    on at
    Re: Creating new excel file with file system corrupting file

    Hi , @dbgghost 

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

    vyueyunmsft_0-1710294674065.png

     

     

    Best Regards,

    Yueyun Zhang

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492