Skip to main content

Notifications

Power Automate - General Discussion
Answered

File Type Error when uploading Excel email attachment to Sharepoint

(0) ShareShare
ReportReport
Posted on by 69

When attempting to automate the upload of an excel email attachment when I attempt to change the name of the attachment I receive the "This workbook couldn't be opened because the file format may not be matching with the file extension." error.

 

If I use the attachment name control this error does not occur. Any ideas how to save an excel attachment to a sharepoint folder with a different name? I've looked extensively at the existing questions surrounding this issue out there but none address changing the name of the attachment.

  • ekru222 Profile Picture
    ekru222 69 on at
    Re: File Type Error when uploading Excel email attachment to Sharepoint

    Yes I'm pretty sure that was it. I found a work around and haven't retested it, but I do have a signature and that was probably messing with it in the way you describe.

  • Verified answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: File Type Error when uploading Excel email attachment to Sharepoint

    @ekru222 I think you have the actions in a loop. It is attempting to convert all attachment to excel and hence failing.

    Please note any embedded images in the email (such as signatures) are also treated as attachments.

     

  • ekru222 Profile Picture
    ekru222 69 on at
    Re: File Type Error when uploading Excel email attachment to Sharepoint

    This is where the error is. Whenever I attempt to hard code a File Name, for example 'Test.xlsx', the file will not open. However if I use the attachment's name, as seen in the screenshot, it works fine.

     

    ekru222_0-1716303946339.png

     

  • SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: File Type Error when uploading Excel email attachment to Sharepoint

    Please upload a screenshot of your flow

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard