Repeating Workflows


Issue: Setup Batch Process to run a Workflow but when time comes for it to execute, several iterations of the same Workflow fire. As an example, create a batch process which runs a Workflow which creates a new record. When the batch execution time arrives, 2 records are created instead of the expected 1.

Resolution: While testing the batch process I was simply editing the batch process record's Next Activation Time without changing the Status from Scheduled to Suspended. By doing this the original thread was still running and the new thread for the new time would also execute. While testing, by always changing the Status to Suspended, saving the record, then changing the Next Activation Time, saving the record, then changing the Status back to Scheduled and saving one last time the unexpected duplicate batch executions ceased. Problem solved.