• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2082
  • Last Modified:

SPWorkflowTask.AlterTask

When I try to call AlterTask method I get the error saying "Specified method is not supported"

SPWorkflowTask.AlterTask(this._TaskListItem, taskHash, true);

this._TaskListItem = SPList item
taskhash = properties that needs to be updated.


Any idea why it would be doing this? what should i do to not get this error.
0
pratikshahse
Asked:
pratikshahse
1 Solution
 
mo1oneCommented:
Pratik,
If am correct you are storing a reference to the List Item in your c# workflow.
SPListItem may not be serializable. Since the workflow serialized to the DB and then de-serializes - a reference to it may be lost.
Hence please try using the workflowItemProperties (object from OnWorkFlowInitiated method) object instead which contains a reference to the List item on which the current workflow is running.
 
 
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now