locked
Profile Cache Insert Failure exception RRS feed

  • Question

  • We're still running into an intermittent error when using a workflow.

    Here's the history:

    http://social.msdn.microsoft.com/Forums/en-US/windowsworkflowfoundation/thread/cfe679eb-5081-4c3d-b448-e9abe9ef4815

    Full exception is below.

    Event "Approved" on interface type "WorkflowLibrary.Interfaces.IDocumentEventService" for instance id "3889af2e-0757-4d1a-8d2a-85f6747c4ad3" cannot be delivered. System.ApplicationException: Profile cache insert failure.
       at System.Workflow.Runtime.TrackingProfileManager.GetProfile(TrackingService service, Activity workflow, Version versionId)
       at System.Workflow.Runtime.TrackingListenerFactory.GetChannels(Activity schedule, WorkflowExecutor exec, Guid instanceID, Type workflowType, TrackingListenerBroker& broker)
       at System.Workflow.Runtime.TrackingListenerFactory.GetListener(Activity sked, WorkflowExecutor skedExec, TrackingListenerBroker broker)
       at System.Workflow.Runtime.TrackingListenerFactory.GetTrackingListener(Activity sked, WorkflowExecutor skedExec, TrackingListenerBroker broker)
       at System.Workflow.Runtime.TrackingListenerFactory.WorkflowExecutorInitializing(Object sender, WorkflowExecutorInitializingEventArgs e)
       at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
       at System.Workflow.Runtime.WorkflowRuntime.WorkflowExecutorCreated(WorkflowExecutor workflowExecutor, Boolean loaded)
       at System.Workflow.Runtime.WorkflowExecutor.ReRegisterWithRuntime(WorkflowRuntime workflowRuntime)
       at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)
       at System.Workflow.Runtime.WorkflowRuntime.GetWorkflow(Guid instanceId)
       at System.Workflow.Activities.ExternalDataExchangeService.EnqueueMessageWrapper.DeliverMessage(ExternalDataEventArgs eventArgs, IComparable queueName, Object message, Object workItem, IPendingWork workHandler)
       at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs)    at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs)
       at WorkflowLibrary.Events.DocumentEventService.RaiseApproved(String approved, Guid instanceId)
    

    We have tried a new deployment of the application, and got this exception the 2nd time a workflow of the same type was acted upon (after app pool reset, first workflow runs fine, 2nd time you act on this same workflow type it throws of this exception)

    Wednesday, February 6, 2013 5:13 PM