web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Workflow Error

(0) ShareShare
ReportReport
Posted on by 20

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

I have the same question (0)
  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi James,

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

  • Suggested answer
    SouravDam Profile Picture
    11,730 on at

    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

  • Verified answer
    Andre Ghazaleh Profile Picture
    870 on at

    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/.../

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 669

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 445 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans