We are facing this error
“The workflow's parent item associated with this task is currently in the recycle bin, which prevents the task from being completed.”
We are totally confuse what this error want to say.
Below is the scenario when we are getting error.
We have a requirement where admin can reassign task to of a user to another user.
So we are assigning a task to another user by changing “assign to” field of tasklist item.
When we are calling item.update() (also tried systemupdate() and updateoverwriteversion() ) we are getting this error.
But we are not able to understand why this error is coming.
Then after spending 2-3 hours we are come to a conclusin.
we are getting this error because we are trying to update task which has attached with custom content type and that content type has been inherited by workflow task item.
Even though that task is not created by workflow but if task created with content type that is being inherited by workflow task item then you can not update it directly it should be updated by workflow only.
So in our case we change the content type from workflow task item to simple task itme so that will solve our problem. But we are still not able to understand the error massage.