How To: Obtain Workflow Trace in SharePoint

You can get a LOG file with your workflow trace following this steps:
1. Edit web.config.
2. Insert the following code just BEFORE <appSettings> (always AFTER </System.Workflow.ComponentModel.WorkflowCompiler>):

      <source name="System.Workflow.Runtime" >
            <add name = "System.Workflow"/>
      <source name="System.Workflow.Runtime.Hosting">
            <add name="System.Workflow"/>
      <source name="System.Workflow.Activities">
            <add name="System.Workflow"/>
      <add name="System.Workflow"
      <add name="System.Workflow LogToFile" value="1" />
      <add name="System.Workflow.Runtime" value="All" />
      <add name="System.Workflow.Runtime.Hosting" value="All" />
      <add name="System.Workflow.Runtime.Tracking" value="All" />
      <add name="System.Workflow.Activities" value="All" />
      <add name="System.Workflow.Activities.Rules" value="All" />

Your Trace will appear on the path that you’ve set in ‘initializeData’ (in this case: C:MyWorkflowTrace.log).
More Information:

No Responses

Leave a Reply

Your email address will not be published. Required fields are marked *