Error Reporting

There are multiple locations to view more information about Workflow errors. The location you should select depends on the type of error.

  • Errors encountered while building or publishing a workflow are displayed in the Error Log Pane in the Workflow Designer.
  • Errors encountered while running a workflow will be displayed in the workflow instance details.
  • Workflow Server, Workflow Subscriber, Communication, and Activity errors will be displayed in logs listed under the Error Logs node of the Workflow Administration Console.
  • Note: If you cannot connect to a Workflow Server to open the Error Logs node, you can open log files from the Error Log Viewer option under Tools on the Workflow Administration Console's main menu.

  • Errors with the Workflow Server, Workflow Subscriber, and licenses are usually shown in the Windows Event Viewer.

See a list of the Workflow error codes and messages.

Exporting as a Windows Workflow Foundation File

You can export workflow and business process definitions as C# Source Code files (.cs). The export process is the same for both workflows and business processes.

There are two primary reasons to export a workflow or business process as a C# Source Code file:

  • To use a C# Source Code file with Microsoft's Windows Workflow Foundation.
  • If you contact a technical support professional, you may be asked to provide a C# Source Code file for troubleshooting purposes.

To learn about exporting workflow or business process definitions as a XML-based Workflow Import File (.wfi), see Exporting Workflow Definitions.

To export as a C# Source Code file

  1. Open the workflow you want to export in the Designer Pane.
  2. Select Export as Windows Workflow under Workflow in the main menu. Alternatively, use the keyboard shortcut CTRL+SHIFT+E.
  3. In the Select Export Location dialog box, name the C# Source Code file.
  4. Browse to and select the location where you want to save the file.
  5. Click Save.