Exception in custom workflow based on WWF3 - HRESULT: 0x80020009

Occasional Visitor

I have a random issue, that my workflow crashes and i found in logs exception that mostly (but not always) have in common error: HRESULT: 0x80020009.

 

1) Exception happen in different places

2) Most of them are related to loading/opening SharePoint list

 

Below are few examples from logs from different cases. I put the most important parts only. Language is Czech. Datapolis is our code. It happen more times

 

Any ideas what it can be realated to?

 

1)

System.Runtime.InteropServices.COMException: Došlo k výjimce. (Výjimka na základě hodnoty HRESULT: 0x80020009 (DISP_E_EXCEPTION)), StackTrace:    v Microsoft.SharePoint.SPWeb.GetList(String strUrl)     v Datapolis.WorkBox.Activities.WBForeachItemActivity.TryLoad()     v Datapolis.WorkBox.Activities.WBForeachItemActivity.Execute(ActivityExecutionContext context)

(...)

System.Runtime.InteropServices.COMException: Pokus použít objekt, který již neexistuje. (Výjimka na základě hodnoty HRESULT: 0x80030102 (STG_E_REVERTED)), StackTrace:    v Microsoft.SharePoint.Utilities.SPUtility.GetLocalizedString(String source, String defaultResourceFile, UInt32 language)     v Datapolis.WorkBox.Common.WBLocalizer. (String  , String  , UInt32  )     v Datapolis.WorkBox.Common.WBLocalizer.GetLocalizedString(String key, String resourceFile, UInt32 language)     v Datapolis.WorkBox.Common.WBLocalizer.GetLocalizedString(String key, UInt32 language)     v Datapolis.WorkBox.Common.WBLocalizer.Create(String key, WorkflowContext workflowContext)     v Datapolis.WorkBox.Activities.WBForeachItemActivity.TryLoad()     v Datapolis.WorkBox.Activities.WBForeachItemActivity.Execute(ActivityExecutionContext context)    

(...)

 

System.Runtime.InteropServices.COMException: Pokus použít objekt, který již neexistuje. (Výjimka na základě hodnoty HRESULT: 0x80030102 (STG_E_REVERTED)), StackTrace:    v Microsoft.SharePoint.Workflow.SPWorkflowSubscriptions.FetchEventReceivers(Int32& count, Object& variantEventReceivers)     v Microsoft.SharePoint.SPEventReceiverDefinitionCollection.EnsureEventReceivers()     v Microsoft.SharePoint.SPEventReceiverDefinitionCollection.get_Item(Guid eventReceiverId)     v Microsoft.SharePoint.Workflow.SPWinOESubscriptionService.DeleteSubscription(Guid subID)     v System.Workflow.Activities.CorrelationTokenInvalidatedHandler.DeleteSubscription(ActivityExecutionContext context)     v System.Workflow.Activities.CorrelationTokenInvalidatedHandler.System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.Runtime.CorrelationTokenEventArgs>.OnEvent(Object sender, CorrelationTokenEventArgs dataChangeEventArgs)    

(...)

 

2)

 

Seznam neexistuje.  Vybraná stránka obsahuje seznam, který neexistuje. Seznam byl pravděpodobně odstraněn jiným uživatelem.

 

WBLookup._recognizeLookupsInString -> value = GetLookup(SharePoint/Current/CurrentWeb/ListCollection/5735a99d-f7aa-4950-8053-1795c1b67e30/ListItem[.(@ID_Toku=1) &and; ((@ID_Seznamu='7eefd6b5-147a-40d1-8feb-b62f8f6cdf5f') &and; ((@ID_Vety=811) &and; ((@ID_Ukolu='60;1') &and; ((@AssignedTo='i:0#.w|pbsvb2003\holicka.s') &and; ((@stav<1) &and; (@PercentComplete<100)))))),Result('First'),Sort('')]/ID) -> Exception occured:  ( WorkflowId: 14a3c897-69a1-4fa9-bae8-dab7b507f10d )

 

WBLookup._recognizeLookupsInString -> Exception occured when getting lookup value.  ==> Message: Proběhlo přerušení vlákna., StackTrace:    v Datapolis.WorkBox.Common.WBLookup. (String  , Boolean  ), Source: Datapolis.WorkBox.Common ( WorkflowId: 14a3c897-69a1-4fa9-bae8-dab7b507f10d )

 

WBLookup._recognizeLookupsInString general exception occured:  ==> Message: Proběhlo přerušení vlákna., StackTrace:    v Datapolis.WorkBox.Common.WBLookup. (String  , Boolean  ), Source: Datapolis.WorkBox.Common ( WorkflowId: 14a3c897-69a1-4fa9-bae8-dab7b507f10d )

 

System.Threading.ThreadAbortException: Proběhlo přerušení vlákna.     v Datapolis.WorkBox.Common.WBLookup. (String  , Boolean  )     v Datapolis.WorkBox.Common.WBLookup.RecognizeLookupsInString(String stringToRecongnize, Boolean encode, WBXmlDocument wbXmlDocument, String webUrl, SPWorkflowAssociation workflowAssociation)     v Datapolis.WorkBox.Common.WBLookup.RecognizeLookupsInString(String stringToRecongnize, Boolean encode, WBXmlDocument wbXmlDocument, String webUrl)     v  . . (Activity , ActivityCondition , WorkflowContext , SPWorkflowActivationProperties , String , Int32 , SPSite , SPWeb , List`1 )     v  . . (SPSite , SPWorkflowActivationProperties , ActivityCondition , Int32 , SPWeb , WorkflowContext , Activity , String )     v Datapolis.WorkBox.Activities.WBActivityBase.<_executeLookups>b__63_0()     v Datapolis.WorkBox.Common.Security.WBSecurity.RunWithElevatedPrivileges(Action action, WBLogger logger)     v Datapolis.WorkBox.Activities.WBActivityBase._executeLookups()     v Datapolis.WorkBox.Activities.WBActivityBase.BeforeExecute(ActivityExecutionContext executionContext)     v Datapolis.WorkBox.Activities.WBActivityBase.Execute(ActivityExecutionContext executionContext)     v System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     v System.Workflow.Runtime.Scheduler.Run()     v System.Workflow.Runtime.WorkflowExecutor.RunScheduler()     v System.Workflow.Runtime.WorkflowExecutor.RunSome(Object ignored)     v System.Workflow.Runtime.Hosting.DefaultWorkflowSchedulerService.WorkItem.Invoke(WorkflowSchedulerService service)     v System.Workflow.Runtime.Hosting.ManualWorkflowSchedulerService.RunOne(Guid workflowInstanceId)

(...)

 

3)

 

System.Threading.ThreadAbortException: Proběhlo přerušení vlákna.     v SNIReadSyncOverAsync(SNI_ConnWrapper* , SNI_Packet** , Int32 )     v SNINativeMethodWrapper.SNIReadSyncOverAsync(SafeHandle pConn, IntPtr& packet, Int32 timeout)     v System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()     v System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()     v System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()     v System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)     v System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)     v System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()     v System.Data.SqlClient.SqlDataReader.get_MetaData()     v System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)     v System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)     v System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)     v System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)     v System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)     v System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)     v Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)     v Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock)     v Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock)

 

 

Unexpected error occurred!  ==> Message: Proběhlo přerušení vlákna., StackTrace:    v Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)     v Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)     v Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData()     v Microsoft.SharePoint.SPListItemCollection.get_Count()     v Datapolis.WorkBox.Activities.WBForeachItemActivity.TryLoad(), Source: Microsoft.SharePoint.Library ( WorkflowId: 8dae9c02-5514-4d51-baad-e5fd82c29eb9 )

 

System.Threading.ThreadAbortException: Proběhlo přerušení vlákna.     v Datapolis.WorkBox.Activities.WBForeachItemActivity.TryLoad()     v Datapolis.WorkBox.Activities.WBForeachItemActivity.Execute(ActivityExecutionContext context)     v System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     v System.Workflow.Runtime.Scheduler.Run()     v System.Workflow.Runtime.WorkflowExecutor.RunScheduler()     v System.Workflow.Runtime.WorkflowExecutor.RunSome(Object ignored)     v System.Workflow.Runtime.Hosting.DefaultWorkflowSchedulerService.WorkItem.Invoke(WorkflowSchedulerService service)     v System.Workflow.Runtime.Hosting.ManualWorkflowSchedulerService.RunOne(Guid workflowInstanceId)

 

Unable to serialize workflow, exception: Typ Microsoft.SharePoint.Administration.SPDiagnosticsServiceBase v sestavení Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c není označen jako serializovatelný.

 

RunWorkflow: System.Threading.ThreadAbortException: Proběhlo přerušení vlákna.     v Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)     v Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)

 

 

0 Replies