Question

Does anyone see any reason in this workflow why the "create a list item" action highlighted is being duplicated in the assigned list? It creates two of the same item in the assigned list. I'm clueless why this is happening.

duplicate list items

Was it helpful?

Solution

You're running the steps in parallel, and both are being triggered when the status is changed to Approved. There's an item being created in Workflow History Test in the Pending Decision branch, but also in the Approved branch. Here's the order or execution:

  1. Approved: Wait for status change to Approved
  2. Pending Decision: Wait for status change to Pending
  3. Pending Decision: Set Variable reminderaction1
  4. Pending Decision: Set workflow status
  5. Pending Decision: Create item in Workflow History Test
  6. Pending Decision: Wait for status change to Approved
  7. Pending Decision: Set workflow status
  8. Approved: Set Variable reminderaction1
  9. Pending Decision: Create item in Workflow History Test
  10. Approved: Set workflow status
  11. Approved: Create item in Workflow History Test

It's the actions in steps 9 and 11 which are creating the duplicate entries in your list, because the two steps are running simultaneously.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top