Skip to main content

Notifications

Community site session details

Community site session details

Session Id : zai/OZEJauxc3lfx4pJJ4r
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 24 Sep 2020 18:12:23 by 83

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!

  • pthapa Profile Picture
    25 on 18 Jun 2024 at 19:35:52
    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

    Hello,
    I am also trying to send the attachment received in email (.xlsx) file to Share Point with the flow, I am getting corrupted file.
    Can you please help, here is my flow. Must be something with my flow.

    pthapa_0-1718739314891.png

     

    Thanks,

    pthapa

  • JoelAlaball Profile Picture
    2 on 13 Dec 2023 at 11:38:36
    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

    It happens some times. Create from attachment it works without the steps of bytes. If you get the error that file is corrupted, start the script again from 0. I done this 2 times that I have for some of my flows and solve the issue

  • CU06081659-0 Profile Picture
    122 on 29 Sep 2023 at 05:19:33
    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 @v-litu-msft ,

     

    Your suggestion along with the screenshots have worked like a charm for me. Many thanks for your help.

  • eszterk Profile Picture
    2 on 28 Jul 2023 at 14:34:30
    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

    My issue was that the file that was delivered to me came in an email that had a signature on it with a picture. When I ran the flow but didn't have a signature on the email delivered to me, the Excel file was working fine. I would check the file you are saving, for me it was in my one drive and look at the last steps that were taken in the properties to see if it's trying to replace the Excel file with a .jpg or something else is the issue. 

  • Community Power Platform Member Profile Picture
    on 03 Aug 2022 at 11:25:14
    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 @v-litu-msft 

     

    I searched tons of posts before finding this solution! 

  • mitepav Profile Picture
    2 on 17 Jun 2022 at 14:15:56
    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

    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

     

  • Community Power Platform Member Profile Picture
    on 18 Jun 2021 at 08:06:57
    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

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

  • abonahoom Profile Picture
    83 on 25 Sep 2020 at 20:04:55
    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.

  • Verified answer
    v-litu-msft Profile Picture
    on 25 Sep 2020 at 01:32:26
    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.

  • abonahoom Profile Picture
    83 on 24 Sep 2020 at 18:42:51
    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!

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,786 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard