I'm trying to use AutoStartWorkflow in a custom action on the list time menu by placing a link like the following in the "Navigate to Url" text box.
{SiteUrl}/_layouts/Com.CodePlex.SPC3/AutoStartWorkflow.aspx?List={ListId}&ItemID={ItemId}&Workflow=Copy
However I'm getting an error - in the ULS Log I see:
System.Workflow.Runtime.Hosting.PersistenceException: Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb. ---> Microsoft.SharePoint.SPException: Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb. ---> System.Runtime.InteropServices.COMException (0x81070E97): <nativehr>0x80004005</nativehr><nativestack></nativestack>Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.
If I use StartWorkFlow.aspx, it works, but AutoStartWorkFlow.aspx throws this error.
Any ideas what is causing this? I looked at the code in Reflector and I see that AllowUnsafeUpdates is set to TRUE for the SPWeb in question, so not sure what's going on.
↧