Workflow issue after migrating from 2007 to 2010
-
lunes, 30 de abril de 2012 13:49I have created a custom Sharepoint workflow that creates and manipulates tasks in a list.
All my activities execute properly, but when the workflow is about to get to the end (the red point in the diagram :)) some nasty exception happens.
Even with the exception the workflow is marked as complete and the task is also complete.<//td>I have tried to remove the last activities from the workflow because I thought they are causing the trouble, but the problem persists (this is the reason I think the problem is the finalization of the workflow itself and not my activities). The same workflow code is working fine in 2007 environments.
Have you encountered such problem and if you had how can I solve it?
Here are exception details:
Exception: System.Workflow.Runtime.Hosting.PersistenceException
InnerException: System.ArgumentException
InnerExceptionMessage:<nativehr>0x80070057</nativehr><nativestack></nativestack>
Message:<nativehr>0x80070057</nativehr><nativestack></nativestack>
Stack Trace:System.ArgumentException: <nativehr>0x80070057</nativehr><nativestack></nativestack> at Microsoft.SharePoint.Library.SPRequestInternalClass.RegisterEventReceiver(String bstrUrl, String bstrListName, EventReceiverOperation operation, Guid guidId, String bstrName, Guid guidSiteId, Guid guidWebId, Guid guidHostId, Int32 dwHostType, Int32 dwSynchronization, Int32 dwType, Int32 dwSequenceNumber, String bstrAssembly, String bstrClass, Guid solutionId, String bstrData, String bstrFilter, Int32 dwCredential, Guid contextObjectId, Guid contextType, Guid contextEventType, Guid contextId, Guid contextCollectionId) at Microsoft.SharePoint.Library.SPRequest.RegisterEventReceiver...
...(String bstrUrl, String bstrListName, EventReceiverOperation operation, Guid guidId, String bstrName, Guid guidSiteId, Guid guidWebId, Guid guidHostId, Int32 dwHostType, Int32 dwSynchronization, Int32 dwType, Int32 dwSequenceNumber, String bstrAssembly, String bstrClass, Guid solutionId, String bstrData, String bstrFilter, Int32 dwCredential, Guid contextObjectId, Guid contextType, Guid contextEventType, Guid contextId, Guid contextCollectionId) at Microsoft.SharePoint.SPEventReceiverDefinition.RegisterForSiteOrWebOrList(Operation operation, Boolean isMigration) at Microsoft.SharePoint.Workflow.SPWinOESubscriptionService.CommitDeleteSubscription(Transaction txn, Object[] transData) at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection i...
...tems) at System.Workflow.Runtime.WorkBatch.PendingWorkCollection.Commit(Transaction transaction) at System.Workflow.Runtime.WorkBatch.Commit(Transaction transaction) at System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback) at System.Workflow.Runtime.Hosting.DefaultWorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback) at System.Workflow.Runtime.WorkflowExecutor.CommitTransaction(Activity activityContext) at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean unlock, Boolean needsCompensation) --- End of inner exception stack trace --- at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boo...
...lean unlock, Boolean needsCompensation) at System.Workflow.Runtime.WorkflowExecutor.System.Workflow.ComponentModel.IWorkflowCoreRuntime.PersistInstanceState(Activity activity) at System.Workflow.ComponentModel.Activity.MarkClosed() at System.Workflow.ComponentModel.Activity.ReleaseLockOnStatusChange(IActivityEventListener`1 eventListener) at System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.SafeReleaseLockOnStatusChange(ActivityExecutionContext context) at System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.OnEvent(Object sender, ActivityExecutionStatusChangedEventArgs e) at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime) at System.Workflow...
....Runtime.Scheduler.Run()Thanks, Arpit
Todas las respuestas
-
jueves, 03 de mayo de 2012 7:11Moderador
Hi Arpit,
Flush the cache in all web front end servers and try. Check you've configured the cache properly and you got enough disk space the store these cache resources in WFE servers.
http://blogs.msdn.com/b/varun_malhotra/archive/2012/01/29/sharepoint-2010-clear-sharepoint-cache.aspx
http://blog.isaacblum.com/2010/12/27/flush-cache-sharepoint-2010-powershell/
Thanks,
Lhan Han- Marcado como respuesta Lhan HanModerator lunes, 07 de mayo de 2012 1:27
-
lunes, 07 de mayo de 2012 16:49
Hi Lhan,
Thanks for your answer. I did fluch th cache and made sure that it's set up correctly. But still getting the same error.
Any other thoughts?
Thanks, Arpit
- Editado Arpit Goyal lunes, 07 de mayo de 2012 16:49
-
martes, 08 de mayo de 2012 2:18ModeradorHi Arpit,
Please try the following solution, and find if it can solve your issue:
1、Activate the Microsoft SharePoint Foundation Web Application in Central Admin.
2、De-activate the 'Microsoft SharePoint Foundation Workflow Timer Service'.
3、Follow Microsoft's guidance which will require a custom script to update settings in the SharePoint configuration database.
http://support.microsoft.com/kb/2674684
Additional:
If you had disabled the Workflow Auto Cleanup timer job in your Office SharePoint Server 2007 environment, make sure that you disable this timer job in your new environment also. If this timer job is enabled in the new environment and disabled in the previous version environment, you might lose workflow associations when you upgrade. For more information about this timer job.
For more information, please refer to the following links:
http://connect.nintex.com/forums/thread/16685.aspx
http://social.technet.microsoft.com/Forums/en-GB/sharepoint2010setup/thread/5304b7b9-00e4-4ed5-b012-934fdb1aa457
Thanks,
Lhan Han- Editado Lhan HanModerator martes, 08 de mayo de 2012 2:20

