Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 7A7exl3b12giZ0upQGe+Sp
Power Automate - Building Flows
Answered

Export email - Can't open file

Like (1) ShareShare
ReportReport
Posted on 9 Dec 2020 20:58:47 by 102

Hi,

So I created a flow where it triggers when an email arrives to a Shared mailbox and then it would create the email on SharePoint library, but the problem is we can't open the email once we download it, I get this error "Can't open file: [filename]. The file may not exist, you may not have permission to open it, or it may be open in another program."

This happens with different machines/users so it's not only my computer. 

Here's a summary of the flow:
chrome_8BtI585T3Z.png

This is the error I get when I download the email from SharePoint library:
OUTLOOK_86wagAbcNd.png


I can rename the email once I download it so it's not opened anywhere.


Has anyone else experienced this?

  • jolor69 Profile Picture
    7 on 18 Oct 2023 at 05:21:40
    Re: Export email - Can't open file

    Thanks! That expression worked on my attempt to export the email to a Sharepoint folder with the file name same as the subject of the email and attach extension .eml onto it. I tested by downloading the .eml file and open with Outlook.

    jolor69_0-1697606451869.png

     

  • Joseff Profile Picture
    37 on 31 May 2022 at 09:57:57
    Re: Export email - Can't open file

    This is really helpful 🙂

    Such an odd thing that it wont save as a msg and will only save as an eml

    I know this post has been inactive for a while but does anyone know if there is a reason not to save as eml?

     

  • MrEdward Profile Picture
    102 on 10 Dec 2020 at 17:14:54
    Re: Export email - Can't open file

    Interesting, I wonder why .msg file extension doesn't work..
    Funny thing is if I drag and drop an email from outlook to sharepoint library, it works fine and its a .msg extension too and I'm able to re-create the email (.msg ext) on the flow without issue as well.

    Seems like if its coming from a shared mailbox and using the export email action, theres problems with .msg extension.

  • Verified answer
    sudharsan1985 Profile Picture
    1,325 on 10 Dec 2020 at 08:16:45
    Re: Export email - Can't open file

    Hi @MrEdward 

    I am able to replicate the scenario the cause of the error is due to the filename. Do not give the filename like the dynamic expression and then string like what you gave. Use the concat method to append the file name as like the below. Use the extension as eml and not as msg

     

    concat(triggerOutputs()?['body/subject'], '.eml')

     

    The moment I used the above expression and added the output of the Export email action and then created a file in OneDrive, I am able to open the file.

    Please try the above and let me know.

     

  • v-litu-msft Profile Picture
    on 10 Dec 2020 at 07:54:27
    Re: Export email - Can't open file

    Hi @MrEdward,

     

    Could you please share the steps of export Email to msg file?

     

    Here is a blog about how to fix msg file cannot open, hope it could help you:

    How to Fix MSG File Not Opening Problem in Outlook - Info | Remo Software

     

    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.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started
Loading complete