Dynamics AX 2012 , workflow batch job fails with the error “Failed to find workflow”
Dynamics AX 2012 , workflow batch job fails with the error “Failed to find workflow”
1. Ensure you do a proper backup of your existing SYSWORKFLOWMESSAGETABLE prior to attempting this fix.
2. Identify the record(s) that are causing the batch to fail.
Select a.RECID from SYSWORKFLOWMESSAGETABLE a Where a.ROOTCORRELATIONID notin(Select b.ROOTCORRELATIONID from SYSWORKFLOWTABLE b)and a.MESSAGELIFECYCLESTATE = 1
3. Dequeue the SYSWORKFLOWMESSAGETABLE records that do not have a corresponding SYSWORKFLOWMESSAGETABLE record.
4. Update SYSWORKFLOWMESSAGETABLE Set MESSAGELIFECYCLESTATE = 2 where RECID =<RECID returned from statement above>
The procedures above will dequeue the message causing the error and allow the batch to complete.
Source:
In addition; please check below.
-- If the workflow version is deactivated.
-- If workflow is updated with another version for which Batch job still refer to the previous version.
-- Any change made in workflow owner in the workflow configuration.
Regards,
Sourav
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,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156