Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Flow when email with attachment arrives, create file in SharePoint library stopped creating file suddenly

Hi All,

I created a flow to monitor a shared mailbox and when and email with an attachment from specific email address arrives the flow uploads the attachment to the SharePoint library and send notifications that a file with IDxx and filename xxxx has been uploaded.

The specific emails (with an attachment) is received once a day, so the flow runs once a day. The attachment is an .xls file.


The flow worked fine while testing and now after I have published the flow live, it run 12 times doing what is supposed to do.

Suddenly today the flow should've uploaded the 13th file, but it did not happen, although the flow result is success at first part.


The flow history showed that flow run OK  - no error messages.

But when it came to "Apply to each" action - uploading the attachment and then sending the notification after that, those actions are dimmed and no results:


Upload attachment.PNG


I tried to resend the same email with the attachment again to the shared mailbox and the same result - did not create the file.


I uploaded the attachment manually and it uploaded successfully to the SP document library- so it is not the file the problem.


From previous history of the flow I see that there are 2 results per flow run within couple of minutes - one picks up the email with the attachment, second creates the file on Sharepoint from attachment:

Upload attachment 1.PNG


First flow result:

Upload attachment.PNG


And second part result:

Upload attachment 2.PNG

"Create file" raw inputs:

Create file Inputs:

    "host": {
    "parameters": {

Today, there is just the first part run in the history (see above). The second part did not happened - as per screenshots above.


I'm not sure what happened or aware if anything happened so the flow suddenly to stop creating the files in SharePoint - nothing has changed since before, no error messages ( I have an error notification set up in the "If no" branch). And why it run OK 12 times and then stop?


Any help, pls?

Super User
Super User

Not sure based on this, but you might want to look at SharePoint errors in the admin console, as they might hold more information on this.


We might need to see more of the flow, what the full conditions, and failure captures are. Additionally, is the user account that you used to upload the file to SharePoint the same account that runs the flow?

Hi @eliotcole - thanks for looking.

I cannot see any errors in SharePoint Online. The service account running the flow is a site admin and site owner and also co-owner of the shared mailbox - so permissions should be OK.


Here how the flow is built:




IsFromFilterApplied variable:


Condition to apply "From" filter:



"If yes" side:



If the email is from specified email address in the condition above then "Apply to each" create the file and send notification:


Yesterday it failed on Create file action and did not send the notification after that.

The flow should be triggered again today at 11:30-ish today. will monitor it again.


Here is the history again:




Pls let me know if you need any more info.

Thanks again



Regular Visitor

Here is the SharePoint Online document library:



Post Patron
Post Patron

Hi @RSwork ,

You can watch this video to resolve your issue,

Please subscribe and like the video if it's resolve your issue

Super User
Super User

That's some good info, @RSwork , thank you!


I'll look in to it soon, and post back. 👍

Hi again @eliotcole ,

Funny bit is that today at 11:34 the flow run as it should, as there was a new email send to the shared mailbox with the required attachment - and guess what - it run successfully and uploaded the attachment as a new file on SharePoint site.

How bizarre?!

Still not sure why it failed to create that file yesterday... 

Hi @Powerplatform01 ,

Thank you for pointed to that video.

I have created my flow in a more simple way, but with conditions that the flow will process emails sender from specific sender, with specific keywords in subject line and also must have attachments.

Ans it worked great including today - except yesterday and still unable to find out why.



Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,075)