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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Business Process Error or Failed Workflow Process Sessions View

(0) ShareShare
ReportReport
Posted on by 285

Hi,

I'm looking to create a view to place on my dashboard that would show me the failed workflow process sessions that occurred. According to my research, this sort of errors are also  called Business Process Errors by the system. I haven't been able to find either of those terms in any of the view creation pages.

I know how to make a view for failed System Jobs, but they don't have a System Job Type for workflow processes, so it's not what I'm looking for.

Is there any way to create a Business Process Error View or Failed Workflow Process Sessions View?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Michel van den Brink Profile Picture
    4,697 on at

    Hello Artemy,

    The 'System Jobs' entity would be my first direction to go. It strikes me as odd that you don't have a System Job Type for 'Workflow', all organizations should have this. Perhaps the option set value label has been changed? It's integer code is 10 in the 'operationtype' field.

    'Business Process Errors' generally refers to failed Plug-ins, they can also be found under System Jobs if they are marked as asynchronous. Otherwise, they should be under the 'Plug-in Trace Log', if that's enabled.

    ---

    Another thing to consider is that System Jobs are not always flagged with the status reason 'Failed' if they fail, sometimes they get stuck on 'Waiting'. It helps to add additional filter condition to check if the System Job has an error code.

    This is the View I normally use to check for failed Workflows:

    failedworkflows.png

    FetchXml equivalent:

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
      <entity name="asyncoperation">
        <attribute name="asyncoperationid" />
        <attribute name="name" />
        <attribute name="regardingobjectid" />
        <attribute name="operationtype" />
        <attribute name="statuscode" />
        <attribute name="ownerid" />
        <attribute name="startedon" />
        <attribute name="statecode" />
        <order attribute="startedon" descending="true" />
        <filter type="and">
          <condition attribute="operationtype" operator="eq" value="10" />
          <filter type="or">
            <condition attribute="statuscode" operator="eq" value="31" />
            <filter type="and">
              <condition attribute="errorcode" operator="not-null" />
              <condition attribute="statuscode" operator="in">
                <value>20</value>
                <value>10</value>
              </condition>
            </filter>
          </filter>
        </filter>
      </entity>
    </fetch>

    I hope this helps you to get the information you seek.

  • Verified answer
    Artemy Profile Picture
    285 on at

    What I meant was that I don't have a System Job Type for 'Workflow Process Session'. I found the views under the 'Process Sessions' entity and can now add them to the dashboard.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans