cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abonahoom
Resolver I
Resolver I

File Format/File extension not valid - Using Flow to save an excel Outlook attachment to a SharePoint document library - excel file has a table

Hello,

I keep getting an error when try to open an excel file where I used flow to save it from outlook to a document library.  I'm able to open the file from Outlook with no errors.  The file opens as read only from Outlook and has the file extension xlsx.  The file has information stored in a table and this is where I think the error is stemming from.  

 

This is the error I receive when I try to open the file from SharePoint;

abonahoom_0-1600970526071.png

 

Here is my flow;

abonahoom_2-1600970688456.png

 

The flow works however when I open the file from SharePoint it's corrupted.  What am I doing wrong?  If I drag the file over from my email and drop it into the document library I'm able to open the file from SharePoint, I just can't get it to open when I use flow.  I need the process to be automated and not manual.  I'm also open to other suggestions.  After this process runs I then use another flow to take the information from the table in my excel file and update a SharePoint list.  

 

Thanks for your input and help!

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @abonahoom,

 

Please add a Get attachment (V2) action to get the file Content Bytes, then use it to create file:Screenshot 2020-09-25 093030.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
abonahoom
Resolver I
Resolver I

I just re-ran this flow using an excel file without a table and the flow worked however I can't open the excel file, I'm getting the same corrupted error.  Agh!

Hi @abonahoom,

 

Please add a Get attachment (V2) action to get the file Content Bytes, then use it to create file:Screenshot 2020-09-25 093030.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, it works perfectly now.

Anonymous
Not applicable

Thanks a ton @v-litu-msft . it worked. You saved my time. Please keep supporting.

Hello, 

the proposed solution does not work for me. 

I've created below flow. I'm trying to attach multiple files to email. Email is send with all files , but all files are corrupted.

I'll appreciate if you could help me 

 

mitepav_0-1655475230010.png

 

Thank you @v-litu-msft 

 

I searched tons of posts before finding this solution! 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,091)