I have problem with UpdateAllTasks activity.
Before executing this activity, I have a task as seen in workflow history here: But when task gets finished, i`m calling UpdateAllTasks to update some properties for every task, but DueDate column for all tasks are cleared as seen here:
This particular thing is happening in updateTaskData activity with such properties:
updateTaskDataProperties = new SPWorkflowTaskProperties();
updateTaskDataProperties.ExtendedProperties["WorkflowData"] = WorkflowDataSerializer.SerializeToXmlString<ApprovalWorkflowRuntimeData>(WorkflowData);
A workaround with drawbacks
There is a workaround however which would satisfy someone. If we add such a line
updateTaskDataProperties.DueDate = ApprovalTaskProperties.DueDate;
then it works as expected. Unless you haven't edited tasks due date by other means (for example in GUI). Then it will reset back to DueDate that was specified for task to which ApprovalTaskProperties belongs to.
Why?
Why is such thing happening and maybe there is a cure for that? Otherwise i`ll have to go with the workaround which prevents adjusting due date.