cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlejandroPNW
Microsoft
Microsoft

Excel Attachment from Email to File Folder Corrupt

Hello,

 

I'm having trouble scraping an email and depositing the excel file into a file folder with a new name. 

 

Here's my first step: 

AlejandroPNW_1-1625618306838.png

 

And then the second: 

 

AlejandroPNW_2-1625618335130.png

In the screenshot above, I just have attachments as the input for the apply to each.

 

Second continued: 

 

AlejandroPNW_3-1625618368451.png

In the compose I created the following for the filename: 

concat('upload''.''xlsx')

 

And for the file content, I used the dynamic content type: "Attachments Content"

 

Executing the flow now deposits the file where I want (and about the same size), but it's corrupt when oppened. 

 

AlejandroPNW_4-1625618573614.png

^This is correct!

 

AlejandroPNW_5-1625618601025.png

 

^This is sad! 

 

I've tried looking through old posts, but I'm not seeing anything obviously in error. Does anyone have any suggestions?

 

2 REPLIES 2
v-LilyW-msft
Microsoft
Microsoft

Hi @AlejandroPNW ,

This error message is encountered in the following scenarios:

  • The file is not compatible with the Excel-version
  • The file has become corrupt or damaged

Please change concat('upload''.''xlsx') to concat('upload', '.', 'xls') and try again.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the suggestion, but the file is still coming out strangely. 

 

In this case I can open it, but when I do this is the result: 

AlejandroPNW_0-1625676884105.png

 

The true result should be a fairly simple table of data. 

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,890)