cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

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

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

3 REPLIES 3
Highlighted
Frequent Visitor

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

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!

Highlighted
Community Support
Community Support

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

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

Highlighted
Frequent Visitor

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

Thank you, it works perfectly now.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (3,010)