Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Workflow Error

Posted on by 20

Dynamics AX 2012 , workflow batch job fails with the error “Failed to find workflow”

  • Verified answer
    Andre Ghazaleh Profile Picture
    Andre Ghazaleh 870 on at
    RE: Workflow Error

    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:

    cloudblogs.microsoft.com/.../

  • Suggested answer
    SouravDam Profile Picture
    SouravDam 11,721 on at
    RE: Workflow Error

    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

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: Workflow Error

    Hi James,

    Please check this link.You should be able to resolve the error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans