An error occurred while designing workflow in SharePoint designer. What should I do?

Source: Internet
Author: User

It seems that this problem is really tricky, because it is a built-in usage method provided by Sharepoint, it is difficult to see the error information, but it is not impossible.

 

There is a hidden list in the SharePoint site called workflow history. You can use the information in this list to help you view the running status of workflow. for example, if the workflow of OOB (out of box) is "approved", a lot of data will be written to the data column of the item in the workflow history.

 

SharePoint designer provides an action called log to history list. when you want to record the history information of workflow for error research or tracking, you can use this action to record the information to the workflow history list. when you create a workflow that uses actions such as log to workflow history list, Office Sharepoint designer 2007 automatically creates a list called workflow history. this list contains data columns such as user ID, date, event, and error description.

 

For the workflow developed by Visual Studio, you can call the following method to write data to the workflow history to help you debug workflow.

 
Spworkflow. createhistoryevent (this. Web, WF. instanceid, 0, usermember, time, "", "some comments here", "");

 

References:

Introduction to workflows

Http://office.microsoft.com/en-us/sharepointdesigner/HA101005871033.aspx

Write to the workflow history list programatically

Http://sharepointcoding.wordpress.com/2008/09/09/wirte-to-the-workflow-history-list-programatically/

Logging to the workflow history list in SharePoint workflows

Http://www.tonstegeman.com/Blog/Lists/Posts/Post.aspx? Id = 103

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.