Solved: SharePoint 2013 custom workflow generates duplicate email notifications

Imagine this scenario:

You have a custom SharePoint Designer workflow attached to a list or a library in SharePoint 2013. The workflow runs when an item in the list/library is created or modified, and one of the steps in the workflow is to send an email notification to a user or a group of users. The workflow runs as expected, but your users are telling you that they’re receiving duplicate email notifications. How do I get rid of the duplicate emails?

Solution:

If you check the workflow history, you will probably see that every time an item is added or modified, the workflow runs twice. That’s why you’re receiving two email notifications. But why is the workflow running twice for each item?

The reason for this is timing. If your workflow is very short and the SharePoint server is very slow, the first instance of the workflow may finish well before the item is fully saved and committed to SharePoint. As the item is being processed, the workflow event receiver can fire again, and start another instance of the workflow.

The solution for this problem is to add a step at the end of your workflow which will pause the workflow for a few minutes – I usually set it to 5 minutes and that seems to solve the problem.

Advertisements

9 Responses to “Solved: SharePoint 2013 custom workflow generates duplicate email notifications”


  1. 1 Erin September 29, 2013 at 3:37 pm

    Great suggestion. I just upgraded from 2010 and noticed this is happening in at least one workflow. Adding the pause is a quick and simple solution for now, thank you!

  2. 2 Mohammad Hawasli January 12, 2014 at 4:40 am

    Thank you
    It is solve my issue

  3. 3 Kolade Oluwagbenga Ige February 4, 2014 at 7:34 am

    The solution works… Thank you

  4. 4 Tesfaye December 30, 2014 at 9:22 am

    I have the smae issue on SharePoint 2010 list and used pause for duration action.you Saved my day! Great solution!!

  5. 5 Johnny Christopher Forgione March 25, 2015 at 8:03 am

    Does it have to be 5 minutes? I am using this process for my workflow and I set it to 2 minutes but find users getting duplicate emails as well.

    Thank you

  6. 6 Rahul July 29, 2016 at 3:22 am

    good one! works for me

  7. 7 dayle November 4, 2016 at 4:23 am

    thanks, it worked like a charm

  8. 8 Najitha May 29, 2017 at 3:32 am

    Great..!! Worked for me as well 🙂

  9. 9 Avnish Mishra July 3, 2017 at 2:11 am

    Hello,
    I am using SharePoint Online, I have create a site workflow for sending Daily alert to our site members, for this I created a SPD workflow with Send an Email step,
    when I test this with 5 Accounts it works fine but when tried to send Emails to real users it send multiple Emails more then 60 Emails.
    Then I tried to send Emails Individually to each member still it send number of Emails. My go live date is passed and I need solution as soon as possible.
    Kindly help me
    Thanks in advance.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




RSS Information Week Headlines

  • An error has occurred; the feed is probably down. Try again later.

RSS SharePoint Team Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS InfoPath Team Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS Joel Oleson Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS Susan Hanley’s KM Blog

  • An error has occurred; the feed is probably down. Try again later.

Blog Stats

  • 356,540 hits

%d bloggers like this: