If your workflow is enabled but it is being unloaded, that workflow will be displayed in the WFAnalyzer as Failed. For failed workflows, you will have to trace them to determine why they are failing and being unloaded.

  1. On the RMS, click Start, point to Programs (or All Programs), point to System Center Operations Manager 2007 R2, point to Authoring Tools, and click Workflow Analyzer.

  2. Locate the workflow where the status is Failed.

  3. Right-click the workflow and click Trace.

    You will be presented with a list of instances of the class that the monitor is running against, as well as their status. For example, if there are multiple databases discovered, you will see a workflow for each instance.

  4. Click the failed workflow instance and click Start.

    In the TraceWorkflow window, you will see two traces: submitting trace override and trace override has been submitted successfully. All subsequent trace outputs are output to an ETL file on the computer on which the agent is running.

  5. You have two options for the TraceWorkflow window on the RMS:

    • You can leave the TraceWorkflow window open (recommended). Close the window after you are done troubleshooting the workflow.

    • You can close the TraceWorkflow window. A Stop window appears, asking if you want to stop debugging the current session. Click No. The override will remain intact and the workflow will continue to trace until the WFAnalyzer is launched again and another workflow is traced. There can only be one workflow traced for a management group at a time. Since the override is persisted in the database, it will survive Agent Health Service restarts and will always trace.

      If you click Yes, workflow tracing on the agent will stop. When you attempt to connect to an existing trace session on the agent, WFAnalyzer will fail to show any traces or the traces will be incomplete.
  6. Copy WFAnalyzer.exe to the Operations Manager installation directory on the computer on which the agent is running.

  7. On the computer on which the agent is running, run WFAnalyzer.

  8. In the Start a new session window, the only available option is Connect to an existing Workflow Analysis. Click Start.

    The TraceWorkflow window appears and displays all the traces that have been logged, even if the workflow has already hit the point where the bug happened.

You can copy data from here for reference or troubleshooting. To capture the whole trace to send to other people on your team or to Microsoft Customer Service and Support, see Capturing Trace for a Failing Workflow.

See Also