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

When new email with attachment arrives upload attachments to SharePoint document library flow gets stuck when 2 emails arrive simultaneously


I have created a flow to monitor a shared mailbox for emails from specific sender and containing attachments to upload the attachments to SharePoint document library and as next step to send email notifications to relevant accounts with details about the upload.

So far so good - the flow works and 99% so far no issues. The emails are received once a day, mid day and the attachments uploaded to SP. Cool.


Until I noticed that the flow did not upload files for Saturday, Sunday and today as well.


Happens that over the weekend our organisation had an Exchange problems which accumulated a que of unsend emails, most of which seems were send today.

So today the mailbox in question received 2 emails with above conditions at almost the same time - like back to back, seconds between them.


I checked the flow history and the flow run twice today, reporting success:



But no attachments were uploaded and no notifications were sent for both runs.

When looking at the 'Yes' branch I see the 'Create file' and 'Send and email notification' actions are dimmed:




IMHO, I think possibly the cause is because the emails were received back to back - the flow started on the first email, then immediately started the second one and crashed or similar... am I right?


So my question is - how can I prevent something like that happening in the future. Especially if I need to build similar to other shared mailboxes...


Any ideas? Perhaps add some pause between flow runs for back to back emails issues? How? Or something more exotic?


Thanks in advance. RS

Regular Visitor

Hi Gys,

Any Idea how to delay processing second email (or more mails), when they arrive together?

Like process first email, pause to finish, then next, pause, next, pause to complete, next, pause etc...



Regular Visitor

I was reading some posts and wander if I can add "Pause" action after the last action of my flow - "Send" per this:


Solution by @RobElliott 


Is that going to solve my problem?



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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,044)