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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How can I search for specific workflow error messages in Dynamics 365 Finance & Operations

(3) ShareShare
ReportReport
Posted on by 14

Hi Experts,

I am trying to identify and search for specific workflow errors in Dynamics 365 Finance & Operations.

My objective is to find workflow instances that failed with a particular error message, example (insufficent security role related error, budget exceeded related error etc)

I have already tried using Advanced Filter/Sort functionality.However, I am unable to find the table for  workflow error message.

Is there a standard way to search workflow history by a specific error message? 

Any guidance or best practices would be greatly appreciated.

Categories:
I have the same question (0)
  • CU14050200-0 Profile Picture
    4 on at

    Workflow errors can be exported using the Table Browser. However, error messages may not be available for all types of workflow failures.
    In such cases, other related IN/OUT tables should be reviewed for further investigation and troubleshooting.

    In your case, the error details are available in the
    WorkflowTrackingStatusTable
                 -- TrackingStatus  -- Stopped (error)
                 
    -- InstanceNumber -- ...
                 -- RootCorrelationId -- 
                 -- CorrelationId-- ...
                     ....
                 -- error message -- 6/6/2026 0:41:30 am: insufficent security role related error, budget exceeded
                 -- elapsed time -- ...
                

    I think you can map it accordingly now.

  • CU05062024-1 Profile Picture
    14 on at
     
    Thank you for your response.
     
    I checked the WorkflowTrackingStatusTable the challenge I am facing is that I cannot find a field that stores the actual error message 

    I tried searching for fields containing names such as "Error", "Message", and "Text", but I could not identify a field that appears to contain the workflow error details.
     
    Is the error message stored directly in WorkflowTrackingStatusTable, or is it available in a related table?

    If it is stored in another table, what is the table name and how can it be used in Advanced Filter/Sort to search for specific workflow errors?
     
    Thank you
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    15,225 Super User 2026 Season 1 on at
     
    There is no simple standard search page where you can search all workflow history records by free-text error message.
    The standard place to start is: Common > Inquiries > Workflow > Workflow history

    From there, you can filter by workflow status, for example Stopped (error), but searching by the actual error message usually requires looking at the workflow tracking tables (i.e. WorkflowTrackingStatusTable)
     
    For more detailed tracking/error text, you may also need to review the related workflow tracking/detail records, because not every workflow failure stores the full error message in the same place. Some errors are stored in tracking details, while others may only be visible from workflow history, batch history, or the workflow log.
  • CU05062024-1 Profile Picture
    14 on at
    Dear @Alireza
     
    Based on your explanation, is it correct to conclude that there is no standard way to search for workflow instances with a specific error message using the Advanced Filter/Sort functionality?
     
    there is no standard field available in the workflow history form that allows filtering directly on the error message text itself.
  • Suggested answer
    Shaluma Profile Picture
    364 on at

    Hi,

    but not through standard Advanced Filter/Sort in the Workflow history page. In D365FO, the workflow error text is stored in:

    WorkflowTrackingCommentTable.TrackingMessage

    Related workflow instance/header data is in:

    WorkflowTrackingTable
    WorkflowTrackingStatusTable

    Microsoft’s CDM docs confirm these tables/fields exist: WorkflowTrackingCommentTable in Framework - Common Data Model - Common Data Model | Microsoft Learn,
    WorkflowTrackingTable in Framework - Common Data Model - Common Data Model | Microsoft Learn and
    WorkflowTrackingStatusTable in Framework - Common Data Model - Common Data Model | Microsoft Learn

    Exact D365FO solution

    Create a small custom inquiry form, report, or runnable class that searches WorkflowTrackingCommentTable.TrackingMessage.

    Example runnable class:

     
    class YourClassName
    {
      public static void main(Args _args)
      {
          WorkflowTrackingCommentTable commentTable;
          WorkflowTrackingTable        trackingTable;
          WorkflowTrackingStatusTable  statusTable;

          str searchText = "budget exceeded";

           while select commentTable
             where commentTable.TrackingMessage like strFmt("*%1*", searchText)
             || commentTable.Comment like strFmt("*%1*", searchText)
             join trackingTable
             where trackingTable.RecId == commentTable.WorkflowTrackingTable
             join statusTable
             where statusTable.RecId == trackingTable.WorkflowTrackingStatusTable
            {
                info(strFmt(
                  "Company: %1 | Instance: %2 | Workflow: %3 | Document: %4 | Originator: %5 |                Message: %6",
                statusTable.ContextCompanyId,
                statusTable.InstanceNumber,
                statusTable.ConfigurationName,
                statusTable.Document,
                statusTable.Originator,
                commentTable.TrackingMessage));
             }
       }
    }

    For production use, make this a custom inquiry form with a search field for error text, plus filters for company, workflow name, document, originator, and date. Do not rely on Advanced Filter/Sort for this, because the visible workflow history message is not exposed in the standard form as a simple searchable datasource field.

    To fix specific failed workflows after finding them:

    1. Go to Common > Inquiries > Workflow > Workflow history.
    2. Search by the returned Instance number, Document, or Workflow.
    3. Open the failed workflow and check the tracking details.
    4. Fix the root cause, for example missing security role, invalid approval hierarchy, budget control issue, stopped batch, or custom X++ exception.
    5. Recall/resubmit or resume/retry the workflow depending on the document type and workflow status.

    standard UI does not provide a direct “search workflow history by error message” feature. The exact technical place to search is WorkflowTrackingCommentTable.TrackingMessage, joined back to WorkflowTrackingTable and WorkflowTrackingStatusTable

    Thanks!
    If you found it helpful, please consider marking it as Verified — it may be useful for others in the future!

  • Suggested answer
    Abhilash Warrier Profile Picture
    8,659 Super User 2026 Season 1 on at

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Subra Profile Picture

Subra 407

#3
Martin Dráb Profile Picture

Martin Dráb 274 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans