Link to home
Start Free TrialLog in
Avatar of l3com
l3comFlag for United States of America

asked on

SharePoint Designer 2007 Workflow creating duplicate tasks

The problem I am facing is a custom workflow created using SharePoint Designer 2007 is creating a task, however it creates the same task twice. This issue is also intermittent, as it does not always create the duplicate task. It does seem much more likely for this to occur when multiple instances of this workflow are running simultaneously (which is very likely scenario to happen over time in this Forms library).

What I have set up in SharePoint 2007:
A blank site with one Forms Library
InfoPath form as template document for Forms Library
Default Tasks list is being used

The default task list, Tasks, has default settings which include email notifications enabled.

The SharePoint Designer 2007 workflow in question has the following steps:

Step 1
Conditions:
None/Blank

Actions:
1. Check out item Current Form Library
2. Update item in Current Form Library with Comment: Updated Approver Field
3. Check in Item in Current Form Library
4. Grant Contribute Permission on Current Item to Current Form Library: Approver
5. Collect Approval from Current Form Library: Approver
6. Delete permission assignment in Current Form Library for Approver
7. Pause for 0 days, 0 hours, 1 minutes
8. Set Variable: Approval to Tasks: Approval
9. Set Variable: Reason to Tasks: Reason

Step 2
Conditions:
If Variable: Approval equals Approved

Actions
1. Email Current Forms Library: Created By

Conditions:
If Variable: Approval equals Rejected

Actions
1. Email Current Forms Library: Created By

In Step 1, Action #5, the Collect Data from User action, is the culprit. The workflow can be completed without error even if the task is duplicated, completing the most recent task will continue the workflow normally.

I have noticed that the duplicate tasks, when created, are two minutes apart in their time-stamp. Taking a look at the SharePoint logs, I cannot see workflow errors in particular with a matching time-stamp; this includes both task's time-stamps and in between.

Any suggestions, help and insight are greatly appreciated.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of l3com
l3com
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial