Reverse search Error messages

Objective

This Tutorial shows you how to reverse search error messages using the XrmToolBox to quickly identify which workflow is failing.

Prerequisites

  • You have the XrmToolBox installed on your PC
  • You have the Admin login data for your Environment at the ready

Click Through

  • Open the XrmToolBox
  • Click on Open Tool Library on the right side under Quick actions
  • Search for FetchXML Builder
  • Install FetchXML Builder
  • In the top section of your screen, click on the Tools tab, left of Tool Library
  • Search for FetchXML Builder
  • Click on it
  • Click on Connect in the top ribbon
  • If you already connected your environment with the XrmToolBox, you can now select it
  • If this is your first time connecting the environment to the XrmToolBox, do the following:
    • Click on +New
    • Choose Connection Wizard
    • Enter your Environment's URL
    • Uncheck "Use your current credentials"
    • Click Next
    • Enter the Email of your Admin account under Username
    • Enter the Password to your Admin Account under Password
    • Click on Next
    • Click on Finish
    • Click on OK
  • In the "Select Tabs to Update" popup, select FetchXML Builder and click on Checked tabs
  • Click on Connect in the top left corner
  • Click on Open Connection Manager
  • Double-click on your environment
  • Set Service timeout to 50 minutes instead of the standard 2 minutes (Screenshot)
  • Click Next
  • Click Next
  • Click Finish
  • Click Close
  • Click Cancel
  • Click on View in the top ribbon and then on FetchXML (Screenshot)
  • Delete the contents if any are prefilled
  • Copy the following and paste it into the FetchXML Builder:
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
       <entity name="workflow">
         <attribute name="name" />
         <attribute name="statecode" />
         <attribute name="statuscode" />
         <attribute name="primaryentity" />
         <attribute name="type" />
         <filter />
         <filter>
           <condition attribute="xaml" operator="like" value="%[Error message]%" />
         </filter>
         <order attribute="modifiedon" descending="false" />
       </entity>
    </fetch>
  • Replace [Error message] in this text with the Error message you are trying to reverse search (Screenshot)
  • Click on Execute in the top-ribbon
  • A list of the Workflows that can provoke that error message is now displayed

Result

Image
HR