Hello
I have a workflow that waits for a few on change events and executes based on the value of a field. The workflow creates a new queue item based on the value of the field. The only different between the different queue items is the queue its assigned to. so effectively a queue routing workflow based on the value of the field. This all works fine and well except for one problem.
Sometimes in a single queue it will add the item twice or three times. all of them point back to the same record but in the queue it appears multiple times. I suspect that whats happening is that the workflow fires, and then on change occurs again and it fires again before the first one has had a chance to execute on the record. This in turn calls both of them to fire off at in parallel thus creating multiple queue items. Under normal circumstances i understand that if one queue item is created and after the second workflow executes , instead of creating a new queue item it would re parent the queue item to the correct workflow and clean up the extra record. but since they run at the same time i think whats happening is that its adding it to the queue twice.
Does anyone have any suggestions on how to approach this problem. is there a way to limit the workflow to only run one at a time? wait for the first instance to finish and run in order for the same record.
regards
*This post is locked for comments
In theory, they can probably run in parallel, especially if there are multiple async services? Not sure though.. I'm curious as to why would it run again, though. Is it possible to modify the logic?
I don't think that the workflow instances would run in parallel.
You could add an additional y/n field to the form, that is set to y, after a Queue item has been created. And than add a check condition to the workflow, that you only create a Queue item, if this field is not equal y.
Hth Thomas
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156