views:

116

answers:

1

Hi All,

I am running a workflow fired when a new list item is created, the workflow creates a new task item and sends an email. This works fine.

I have another workflow fired when a task item is modified, when I try and modify the task item and click complete an exception:

I have checked the recycle bin and the item asscociated with the workflow is not there, i have deleted all items for the recycle bin but still get the error... Any help would be appreciated!

Exception details:

Server Error in '/' Application.

The workflow's parent item associated with this task is currently in the recycle bin, which prevents the task from being completed. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Microsoft.SharePoint.SPException: The workflow's parent item associated with this task is currently in the recycle bin, which prevents the task from being completed.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[SPException: The workflow's parent item associated with this task is currently in the recycle bin, which prevents the task from being completed.]
   Microsoft.SharePoint.WebPartPages.DataFormWebPart.UpdateCallback(Int32 affectedRecords, Exception ex) +198
   System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +4432739
   Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() +724
   Microsoft.SharePoint.WebPartPages.DataFormWebPart.PerformCommit() +92
   Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e) +61
   Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument) +3651
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +39
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3215
+1  A: 

I have the exact same problem and have been stumped for several hours now. First workflow creates item and sends email - works fine. I too had a secdonay workflow but have since disabled this to no avail. When I click 'complete task' I receive the error message by the previous poster.

Anybody out there able to help us?

Many thanks,

Gez

Gez
Hi Gez, is your secondary workflow running on a task list as well?
nav
My hunch is the error in my case may be caused by deleting the Collect data from user action in the primary workflow which was somehow referenced by the task item.
nav
btw..better if you posted this as a comment rather than an answer :)
nav
Hi Nav, I couldn't find the comment button the first time round so apologies if I got your hopes up! This is the first time I've come to this site. It seems we have the same hunch.
Gez
I too began with a 'collect data from user' action, simply because it creates the 'complete task' form which is better looking that the standard form and also much easier to edit and customise.
Gez
I then deleted the collect and replaced with a create item...
Gez
... and I think your conclusion is correct, there is some behind the scenes reference which is now broken :-(
Gez
Hi Gez, thanks for your comments and helping to add weight to my hunch. I am going to recreate this workflow later this week on a different environment without using the collect data from user action (so hopefully this should not create the same dependency). If you try it out before me let me know otherwise I'll update the post with my result... Cheers!
nav
Hi Gez, by chance, did you get any further with that error?
nav
i recreated this workflow without using collect data from user and the secondary workflow works
nav