cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MrEdward
Helper II
Helper II

Export email - Can't open file

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?

1 ACCEPTED SOLUTION

Accepted Solutions
sudharsan1985
Solution Sage
Solution Sage

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.

 

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...

View solution in original post

4 REPLIES 4
v-litu-msft
Community Support
Community Support

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.

 

sudharsan1985
Solution Sage
Solution Sage

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.

 

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...
MrEdward
Helper II
Helper II

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.

Joseff
Frequent Visitor

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?

 

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.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,902)