Why might workflow actions remain in the time-based workflow queue, even after the triggering criteria changes?
|Knowledge Article Number||000199152|
|Description||Time-based workflow operates on the principle that the workflow actions will remain in the time-based workflow queue until they are executed, or until the record that initiated them no longer meets the workflow triggering criteria. It is however important to note that if the record no longer meets the triggering criteria an edit to the initial record is required, to remove it from the queue.
|Resolution||Situations where the action will not automatically leave the queue:
The day after creation the record will no longer meet the triggering criteria, but there will be no edit involved in this change - as such any time-based workflow actions that the workflow had placed in the time-based workflow queue will remain
Apex DML field updates will usually re-run the workflow rules post update, and remove the action from the queue. It is recommended this be tested first though, if an Apex update is going to be considered as a method of ensuring the triggering conditions remain
As a workaround to this it is recommended that if another Workflow rule field update is causing this issue, the "Re-evaluate Workflow Rules after Field Change" check-box in the field update should be ticked. When using time-based workflow the triggering criteria should be carefully analysed to ensure that a naturally occurring drop-out, such as "Create Date = TODAY() " cannot occur.