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:

This is what I need my Input to look like:

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

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:


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?