0

I start worklfow programmaticaly on SPListItem (custom ContentType). When i try to save all fields but "WorkflowInstanceID", its ok. But,

item[SPBuiltInFieldId.WorkflowInstanceID] = "E714297B-E922-410A-9864-959F76A38686"
item.SystemUpdate()

throws Exception:

SqlError: '@tp_WorkflowInstanceID is not a parameter for procedure proc_UpdateListItem.' Source: '.Net SqlClient Data Provider' Number: 8145 State: 1 Class: 16 Procedure: 'proc_UpdateListItem'

1 Answer 1

0

WorkflowInstanceID is only retreivable, it not possible to update this property, as stated in MSDN

This is the unique GUID of the workflow instance, and is what SharePoint uses to identify the instance.

EDIT: And by the way, the title of this question is a bit confusing.

SPBuiltInFieldId.WorkflowInstanceID 

only returns the GUID of the Field that you want to update, hence you are not trying to update SPBuiltInFieldId.WorkflowInstanceID, but the value of that field in an instance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.