cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mchien
Level: Powered On

Sometimes triggers, sometimes doesn't - "When a new email arrives"

Flow seems to have a hard time triggering off emails.
Much like this link, I have an Exchange mailbox and using the Office 365 Outlook connector, I'm taking the attachments in the incoming email and bringing it into a SharePoint list.
Every email I've tested with had attachments, but I noticed that not every email triggers the Flow. I even sent identical emails many times and like only 20% of them triggers. 
Here's my flow - it's a simple and basic one, but I really don't get why some emails trigger and others don't

Untitled picture.png

 

EDIT: I'm sending in .pdf and .docx files. Though that shouldn't make a difference, as i have said, exam same email may or may not work.

13 REPLIES 13
Community Support Team
Community Support Team

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

Hi mchien,

 

Thanks for sharing with us the screenshot for the flow.


According to the screenshot, I create a similar flow to test this issue.


I also select “Yes” for both two fields “Has Attachment” and “Include Attachments”.


Then when an email with attachment is sent to Inbox, the flow would be triggered. It has nothing to do with the file type.


When an email which no attachment is sent to Inbox, the flow won’t run.

3.PNG

 

To trigger the flow, please make sure that all the emails come with attachment.


Besides, only when an email arrives in Inbox can the flow be triggered. Please check if the email arrives in the proper folder.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
mchien
Level: Powered On

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

For testing, I have always sent the email with an attachment, and the email always arrives at it's location without fail as I keep close watch on the inbox. 

 

As I have said, I would send the exact same email (same attachment) and only one gets caught (as in one triggered). Let's say I sent five identical emails, only one is caught and triggered. The remaining occurences have no trace, not even error, hence never triggered the flow. 

 

Maybe there is a limitation that i'm not aware of? Maybe the flow trigger can only handle one trigger with X period of time, where any other incoming triggers gets thrown away? Because for sure they aren't queued, otherwise I would have gotten many more items in the Flow history

Wdhtaggart
Level: Powered On

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

I have the same issue except I am not even adding criteria.

The flow should trigger on every email that is received but it is very inconsistent.

As a test, I sent 4 emails from 4 different accounts and only 2 triggered a workflow.



graham-oriley
Level: Powered On

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

I'm also experiencing the same issue.

 

Not sure why. The trigger just doesn't fire.

 

Is there a way to trace the trigger to see if it is receiving an error before our flows start?

 

Regards,

Graham

KeithMonadnock
Level: Power Up

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

I'm having the same issue.

KeithMonadnock
Level: Power Up

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

I'm having the same problem.

B_Leaman
Level: Power Up

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

We're having the same issue. Our flow is triggered on an email arriving to the inbox with a particular keyword in the subject and an attachment. The email is generated from another server whenever pertinent information has changed. Currently it generates an email (including the attachment) 4-6 times daily, no closer that 15 minutes apart and usually 1-4 hours apart.

 

Today the latest 2 emails did NOT trigger the flow to run. There was at least 1 earlier in the week that was missed too. There's nothing in the log, but the emails are there in the in-box. We won't be able to scale this solution up to all our locations if FLOW isn't a reliable tool.

 

--Bryan

Shamiso
Level: Power Up

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

I am having the same issue. Did anyone ever found a solution for this? Please share.

khansalina
Level: Power Up

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

I also have the same issue, it's just that the trigger I make is different. My flow should run when a new file is created in a specific folder.

If anyone has a solution for this, please kindly share.

m4ngo5
Level: Powered On

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

I'm not experiencing this issue, but here are three things I would look at.  

 

  1. Are the message attachments to large for Exchange?  Max size is 50MB or admin set limit, whichever is lower. https://docs.microsoft.com/en-us/connectors/office365/#triggers
  2. Try using the "When a new email arrives (webhook)" version of the connector instead.  You'll need to fetch the attachment separately, but this is a worthy debugging effort.

    WebhookAlternative.PNG
  3. Increase the number of retries on the trigger.  You can find this in settings under the three dot menu in the top right corner of the trigger.  By default it makes 4 retry attempts.

    RetryInterval.PNG

Let us know if one of these steps works for anyone!

Administrator
Administrator

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

Hello,  @mchien!

Have you had an opportunity to apply @m4ngo5‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!


Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Flow Community Manager
TobiasPnils
Level: Power Up

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

Having the same issue. Mailflow working sometimes. Sometimes nothing.

Is there any solution for this ?

 

Does the email have to stay in the inbox for a certain amount of time or what is happening ?

 

When i posted this i got to see the last 2 replys and tried Webhook. Now it isnt working at all.

 

Anyone have any experience here with getting it to work properly ?

Arno1975
Level: Powered On

Re: Sometimes triggers, sometimes doesn't - "When a new email arrives"

It used to run fine, but the last week it isn't triggering on all the emails coming in.

Why is this problem still here

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 173 members 4,703 guests
Please welcome our newest community members: