1
votes

OK, this is a first. I created a workflow for a list in sharepoint designer, its a basic if\else 1 step workflow, if an items been created or modified, it sends an email. After a few revisions (make a change, publish, test, repeat...) a weird issue started, Im now getting several copies of the same email sent to me. Not 2 or 3, but hundreds. After about 20 minutes, they seemed to have slowed down, but Im concerned because I have no clue why they started in the first place.

Were running WSS 3.0, and Im using Sharepoint Designer 2007 SP1. Any help would be greatly appreciated.

1

1 Answers

2
votes

Did you create an endless loop by any chance?

That is: Is your Workflow set to execute when an item is modified, and does the workflow modify the item?

Prior to SharePoint 2007 SP2, this will generate an infinite loop:

  1. Workflow starts because the item is modified
  2. Workflow modifies the item
  3. Because the item was modified, another workflow will start
  4. The other workflow modifies the item again
  5. Because the item was modified, yet another workflow will start
  6. Repeat until server crashes

In SharePoint 2007 SP2 this was changed and recursive workflows are forbidden now, but it looks like exactly that is happening with your workflow.

The reason it slows down after a while is possibly because the SharePoint or Mail server is starting to get overloaded.

Which version of WSS 3.0 are you running? Check in Central Administration -> Operations -> Servers in Farm and verify against this table. SP2 is version 12.0.0.6421, any lower version is vulnerable against the infinite workflow loop.