Hi All,
I have a workflow with while loop inside it. When it reach the end of the loop and trying to re-loop, the workflow error with message "workflow failed to run". Have anyone experience the problem? I have looked at the SharePoint log and there are lots of "Thread was being aborted message".
Really appreciate any reply.
11/06/2013 09:52:39.46w3wp.exe (0x2A6C)0x3524SharePoint FoundationWorkflow Infrastructure72fsUnexpectedRunWorkflow: Microsoft.SharePoint.SPException: Thread was being aborted. at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.SubCompiler.DoCompile(WorkflowCompilerParameters parameters, String xomlSource, String assemblyName, CompilationPacket& packet, DirectoryInfo& tempDir) at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.CompileBytes(Byte[] xomlBytes, Byte[] rulesBytes, Boolean doTestCompilation, String assemblyName, SPWeb web, Boolean forceNewAppDomain) at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web) at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association) at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow) at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut) at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)b440b0ce-8d23-4526-aab1-292a34d585b3
11/06/2013 09:52:39.51w3wp.exe (0x2A6C)0x3524SharePoint FoundationWorkflow Infrastructure98d8UnexpectedMicrosoft.SharePoint.SPException: Thread was being aborted. at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.SubCompiler.DoCompile(WorkflowCompilerParameters parameters, String xomlSource, String assemblyName, CompilationPacket& packet, DirectoryInfo& tempDir) at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.CompileBytes(Byte[] xomlBytes, Byte[] rulesBytes, Boolean doTestCompilation, String assemblyName, SPWeb web, Boolean forceNewAppDomain) at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web) at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association) at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow) at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut) at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)b440b0ce-8d23-4526-aab1-292a34d585b3
11/06/2013 09:52:39.56w3wp.exe (0x2A6C)0x3524SharePoint FoundationMonitoringb4lyHighLeaving Monitored Scope (EnsureListItemsData#2). Execution Time=39.7747571778203b440b0ce-8d23-4526-aab1-292a34d585b3
11/06/2013 09:52:39.81w3wp.exe (0x2A6C)0x3524Nintex FormsFront End0000UnexpectedFailed to raise event in workflow to read workflow variables. Error: Thread was being aborted.. Stack trace: at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions) at Microsoft.SharePoint.Workflow.SPWorkflowExternalDataExchangeService.RaiseEvent(SPWeb web, Int32 userId, Guid workflowId, Type eventType, String eventName, Object[] eventData, SPWorkflowRunOptions runOptions) at Nintex.Forms.SharePoint.TaskHelper.<>c__DisplayClass4.<CallRaiseEvent>b__3(SPSite elevSite, SPWeb elevWeb) at Nintex.Forms.SharePoint.Helper.<>c__DisplayClass3b.<RunWithSystemSiteAndWeb>b__39() at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Nintex.Forms.SharePoint.Helper.RunWithSystemSiteAndWeb(SPWeb originalWeb, CodeToRunWithElevatedSite secureCode) at Nintex.Forms.SharePoint.TaskHelper.<>c__DisplayClass4.<CallRaiseEvent>b__2(SPWeb unsafeWeb) at Nintex.Forms.SharePoint.Helper.RunWithAllowUnsafeWebUpdates(SPWeb web, CodeToRunUnsafeWeb codeToRun, Boolean includeSite) at Nintex.Forms.SharePoint.Helper.RunWithAllowUnsafeWebAndSiteUpdates(SPWeb web, CodeToRunUnsafeWeb codeToRun) at Nintex.Forms.SharePoint.TaskHelper.CallRaiseEvent(String operation, Object[] eventData, SPWeb web, Guid workflowInstanceId) at Nintex.Workflow.Forms.ControlTemplates.TaskForm.GetWfVariablesFormData(FormData formData)b440b0ce-8d23-4526-aab1-292a34d585b3
11/06/2013 09:52:39.81w3wp.exe (0x2A6C)0x3524Nintex FormsFront End0000UnexpectedFailed to retrieve form from workflow. Error: Thread was being aborted.. Stack trace: at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions) at Microsoft.SharePoint.Workflow.SPWorkflowExternalDataExchangeService.RaiseEvent(SPWeb web, Int32 userId, Guid workflowId, Type eventType, String eventName, Object[] eventData, SPWorkflowRunOptions runOptions) at Nintex.Forms.SharePoint.TaskHelper.<>c__DisplayClass4.<CallRaiseEvent>b__3(SPSite elevSite, SPWeb elevWeb) at Nintex.Forms.SharePoint.Helper.<>c__DisplayClass3b.<RunWithSystemSiteAndWeb>b__39() at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Nintex.Forms.SharePoint.Helper.RunWithSystemSiteAndWeb(SPWeb originalWeb, CodeToRunWithElevatedSite secureCode) at Nintex.Forms.SharePoint.TaskHelper.<>c__DisplayClass4.<CallRaiseEvent>b__2(SPWeb unsafeWeb) at Nintex.Forms.SharePoint.Helper.RunWithAllowUnsafeWebUpdates(SPWeb web, CodeToRunUnsafeWeb codeToRun, Boolean includeSite) at Nintex.Forms.SharePoint.Helper.RunWithAllowUnsafeWebAndSiteUpdates(SPWeb web, CodeToRunUnsafeWeb codeToRun) at Nintex.Forms.SharePoint.TaskHelper.CallRaiseEvent(String operation, Object[] eventData, SPWeb web, Guid workflowInstanceId) at Nintex.Workflow.Forms.ControlTemplates.TaskForm.GetWfVariablesFormData(FormData formData) at Nintex.Workflow.Forms.ControlTemplates.TaskForm.GetForm(String formKey, FormData formData)b440b0ce-8d23-4526-aab1-292a34d585b3
11/06/2013 09:52:39.82w3wp.exe (0x2A6C)0x3524SharePoint FoundationMonitoringb4lyHighLeaving Monitored Scope (Initialising the form). Execution Time=74451.4549297327b440b0ce-8d23-4526-aab1-292a34d585b3
11/06/2013 09:52:39.82w3wp.exe (0x2A6C)0x3524SharePoint FoundationRuntimetkauUnexpectedSystem.Web.HttpException: Request timed out.b440b0ce-8d23-4526-aab1-292a34d585b3