locked
Unexpected Error while closing custom activity in crm 2013 RRS feed

All replies

  • Hi Arvind,

    Do you have any Plugins registered against that entity? Also, you might want to turn on CRM tracing and check if you get any exceptions/errors there.


    Admin QuikView Solution for CRM 2013

    Thursday, March 6, 2014 11:50 AM
  • Hi,

    I have registered a plugin on Create. But I checked after removing the plugin, it is giving same issue.

    I have already posted the error message above.

    Thanks,
    Arvind Singh


    Regards, Arvind

    Thursday, March 6, 2014 12:02 PM
  • Hi Arvind,

    Could you turn on CRM tracing and see if you get anything there? Because the error you gave doesn't provide any information.

    See how to turn on CRM tracing http://support.microsoft.com/kb/907490/en-gb


    Admin QuikView Solution for CRM 2013

    Thursday, March 6, 2014 12:43 PM
  • Hi,

    Sorry for delay response.

    Please fin the trace log below.

    [2014-03-18 23:55:18.785] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread:   14 |Category: Platform.Sdk |User: a4b2dbdf-34c8-e111-aed5-002dd802feb4 |Level: Error |ReqId: 9a13d672-b7fc-4b33-9c46-65defd9494f4 | VersionedPluginProxyStepBase.Execute  ilOffset = 0x65
    >Web Service Plug-in failed in SdkMessageProcessingStepId: {3F98BA77-2929-4E32-8D9D-70C82EC929BC}; EntityName: new_feedback; Stage: 25; MessageName: Update; AssemblyName: Microsoft.Crm.AuditCreateUpdatePlugin, Microsoft.Crm.Audit, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.AuditCreateUpdatePlugin; Exception: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.Crm.AuditLib.GetActionBasedOnState(Int32 stateCode, String entityName, IPluginExecutionContext context)
       at Microsoft.Crm.AuditLib.GetAction(IPluginExecutionContext context, Boolean useParentMessageName)
       at Microsoft.Crm.AuditBase.LogAuditData(IPluginExecutionContext context, Guid objectId, Boolean allowEntityOnlyAudit, EntityMetadata entityMetadata)
       at Microsoft.Crm.AuditCreateUpdatePlugin.Execute(IServiceProvider serviceProvider)
       at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    .
    [2014-03-18 23:55:18.820] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread:   14 |Category: Exception |User: a4b2dbdf-34c8-e111-aed5-002dd802feb4 |Level: Error |ReqId: 9a13d672-b7fc-4b33-9c46-65defd9494f4 | CrmException..ctor  ilOffset = 0x7
     at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x7
     at CrmException..ctor(Exception innerException, Int32 errorCode, Object[] arguments)  ilOffset = 0xB
     at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at SystemUserProxy.Execute(PipelineExecutionContext context)  ilOffset = 0x21
     at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1AA
     at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4
     at ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext)  ilOffset = 0x0
     at ExtensiblePlatformMessageDispatcher.UpdateWithInvocationSource(BusinessEntity entity, FilterExpression filter, Int32 invocationSource, ExecutionContext context)  ilOffset = 0xCE
     at ExtensiblePlatformMessageDispatcher.Update(BusinessEntity entity, FilterExpression filter, ExecutionContext context)  ilOffset = 0x5
     at BusinessProcessObject.InternalSetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context, BusinessEntity entity)  ilOffset = 0x11B
     at GenericActivityServiceBase.InternalSetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context, BusinessEntity entity)  ilOffset = 0x4B
     at GenericActivityServiceBase.InternalSetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context)  ilOffset = 0x1C
     at BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context)  ilOffset = 0x183
     at BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)  ilOffset = 0x1A
     at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF
     at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x25
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0x89
     at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F
     at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)  ilOffset = 0x57
     at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)  ilOffset = 0x58
     at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1C5
     at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4
     at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x16E
     at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext context, Boolean returnResponse)  ilOffset = 0x16A
     at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x3D
     at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x24
     at   ilOffset = 0xFFFFFFFF
     at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)  ilOffset = 0x241
     at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)  ilOffset = 0x100
     at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)  ilOffset = 0x48
     at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)  ilOffset = 0xC6
     at MessageRpc.Process(Boolean isOperationContextSet)  ilOffset = 0x62
     at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)  ilOffset = 0x256
     at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)  ilOffset = 0xF1
     at ChannelHandler.AsyncMessagePump(IAsyncResult result)  ilOffset = 0x39
     at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  ilOffset = 0x0
     at AsyncResult.Complete(Boolean completedSynchronously)  ilOffset = 0xC2
     at AsyncQueueReader.Set(Item item)  ilOffset = 0x21
     at InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)  ilOffset = 0xD6
     at InputQueue`1.EnqueueAndDispatch(T item, Action dequeuedCallback, Boolean canDispatchOnThisThread)  ilOffset = 0x0
     at SingletonChannelAcceptor`3.Enqueue(QueueItemType item, Action dequeuedCallback, Boolean canDispatchOnThisThread)  ilOffset = 0x3D
     at EnqueueMessageAsyncResult.CompleteParseAndEnqueue(IAsyncResult result)  ilOffset = 0x61
     at EnqueueMessageAsyncResult.HandleParseIncomingMessage(IAsyncResult result)  ilOffset = 0x13
     at AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)  ilOffset = 0x52
     at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  ilOffset = 0x0
     at AsyncResult.Complete(Boolean completedSynchronously)  ilOffset = 0xC2
     at ParseMessageAsyncResult.OnRead(IAsyncResult result)  ilOffset = 0x43
     at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  ilOffset = 0x0
     at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x70
     at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x4
     at ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)  ilOffset = 0x45
     at Task.FinishContinuations()  ilOffset = 0x67
     at Task.Finish(Boolean bUserDelegateExecuted)  ilOffset = 0x3C
     at Task.ExecuteWithThreadLocal(Task& currentTaskSlot)  ilOffset = 0xC4
     at Task.ExecuteEntry(Boolean bPreventDoubleExecution)  ilOffset = 0x96
     at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA2
    >Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.Crm.AuditLib.GetActionBasedOnState(Int32 stateCode, String entityName, IPluginExecutionContext context)
       at Microsoft.Crm.AuditLib.GetAction(IPluginExecutionContext context, Boolean useParentMessageName)
       at Microsoft.Crm.AuditBase.LogAuditData(IPluginExecutionContext context, Guid objectId, Boolean allowEntityOnlyAudit, EntityMetadata entityMetadata)
       at Microsoft.Crm.AuditCreateUpdatePlugin.Execute(IServiceProvider serviceProvider)
       at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    [2014-03-18 23:55:18.825] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread:   14 |Category: Platform |User: a4b2dbdf-34c8-e111-aed5-002dd802feb4 |Level: Error |ReqId: 9a13d672-b7fc-4b33-9c46-65defd9494f4 | MessageProcessor.Execute  ilOffset = 0x1AA
    >MessageProcessor fail to process message 'Update' for 'new_feedback'.
    [2014-03-18 23:55:18.825] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread:   14 |Category: Platform.Sdk |User: a4b2dbdf-34c8-e111-aed5-002dd802feb4 |Level: Error |ReqId: 9a13d672-b7fc-4b33-9c46-65defd9494f4 | VersionedPluginProxyStepBase.Execute  ilOffset = 0x65
    >Web Service Plug-in failed in SdkMessageProcessingStepId: {03F9D7B6-90A7-E011-A1A3-002DD802FEB4}; EntityName: new_feedback; Stage: 30; MessageName: SetStateDynamicEntity; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
       at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    Inner Exception: Microsoft.Crm.CrmException: An unexpected error occurred.
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.SystemUserProxy.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext)
       at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.UpdateWithInvocationSource(BusinessEntity entity, FilterExpression filter, Int32 invocationSource, ExecutionContext context)
       at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.Update(BusinessEntity entity, FilterExpression filter, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.InternalSetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context, BusinessEntity entity)
       at Microsoft.Crm.ObjectModel.GenericActivityServiceBase.InternalSetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context, BusinessEntity entity)
       at Microsoft.Crm.ObjectModel.GenericActivityServiceBase.InternalSetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)
    Inner Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.Crm.AuditLib.GetActionBasedOnState(Int32 stateCode, String entityName, IPluginExecutionContext context)
       at Microsoft.Crm.AuditLib.GetAction(IPluginExecutionContext context, Boolean useParentMessageName)
       at Microsoft.Crm.AuditBase.LogAuditData(IPluginExecutionContext context, Guid objectId, Boolean allowEntityOnlyAudit, EntityMetadata entityMetadata)
       at Microsoft.Crm.AuditCreateUpdatePlugin.Execute(IServiceProvider serviceProvider)
       at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    .
    [2014-03-18 23:55:18.825] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread:   14 |Category: Exception |User: a4b2dbdf-34c8-e111-aed5-002dd802feb4 |Level: Error |ReqId: 9a13d672-b7fc-4b33-9c46-65defd9494f4 | CrmException..ctor  ilOffset = 0x7
     at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x7
     at CrmException..ctor(String message, Exception innerException, Int32 errorCode)  ilOffset = 0x5
     at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF
     at RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0xF7
     at RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)  ilOffset = 0x1E8
     at Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)  ilOffset = 0xBB
     at Activator.CreateInstance(Type type, Object[] args)  ilOffset = 0xA
     at VersionedPluginProxyStepBase.WrapExceptionToThrow(CrmException exception)  ilOffset = 0xA5
     at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1C5
     at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4
     at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x16E
     at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext context, Boolean returnResponse)  ilOffset = 0x16A
     at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x3D
     at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x24
     at   ilOffset = 0xFFFFFFFF
     at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)  ilOffset = 0x241
     at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)  ilOffset = 0x100
     at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)  ilOffset = 0x48
     at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)  ilOffset = 0xC6
     at MessageRpc.Process(Boolean isOperationContextSet)  ilOffset = 0x62
     at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)  ilOffset = 0x256
     at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)  ilOffset = 0xF1
     at ChannelHandler.AsyncMessagePump(IAsyncResult result)  ilOffset = 0x39
     at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  ilOffset = 0x0
     at AsyncResult.Complete(Boolean completedSynchronously)  ilOffset = 0xC2
     at AsyncQueueReader.Set(Item item)  ilOffset = 0x21
     at InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)  ilOffset = 0xD6
     at InputQueue`1.EnqueueAndDispatch(T item, Action dequeuedCallback, Boolean canDispatchOnThisThread)  ilOffset = 0x0
     at SingletonChannelAcceptor`3.Enqueue(QueueItemType item, Action dequeuedCallback, Boolean canDispatchOnThisThread)  ilOffset = 0x3D
     at EnqueueMessageAsyncResult.CompleteParseAndEnqueue(IAsyncResult result)  ilOffset = 0x61
     at EnqueueMessageAsyncResult.HandleParseIncomingMessage(IAsyncResult result)  ilOffset = 0x13
     at AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)  ilOffset = 0x52
     at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  ilOffset = 0x0
     at AsyncResult.Complete(Boolean completedSynchronously)  ilOffset = 0xC2
     at ParseMessageAsyncResult.OnRead(IAsyncResult result)  ilOffset = 0x43
     at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  ilOffset = 0x0
     at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x70
     at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x4
     at ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)  ilOffset = 0x45
     at Task.FinishContinuations()  ilOffset = 0x67
     at Task.Finish(Boolean bUserDelegateExecuted)  ilOffset = 0x3C
     at Task.ExecuteWithThreadLocal(Task& currentTaskSlot)  ilOffset = 0xC4
     at Task.ExecuteEntry(Boolean bPreventDoubleExecution)  ilOffset = 0x96
     at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA2
    >Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: Microsoft.Crm.CrmException: An unexpected error occurred. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.Crm.AuditLib.GetActionBasedOnState(Int32 stateCode, String entityName, IPluginExecutionContext context)
       at Microsoft.Crm.AuditLib.GetAction(IPluginExecutionContext context, Boolean useParentMessageName)
       at Microsoft.Crm.AuditBase.LogAuditData(IPluginExecutionContext context, Guid objectId, Boolean allowEntityOnlyAudit, EntityMetadata entityMetadata)
       at Microsoft.Crm.AuditCreateUpdatePlugin.Execute(IServiceProvider serviceProvider)
       at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
       --- End of inner exception stack trace ---
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.SystemUserProxy.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext)
       at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.UpdateWithInvocationSource(BusinessEntity entity, FilterExpression filter, Int32 invocationSource, ExecutionContext context)
       at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.Update(BusinessEntity entity, FilterExpression filter, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.InternalSetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context, BusinessEntity entity)
       at Microsoft.Crm.ObjectModel.GenericActivityServiceBase.InternalSetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context, BusinessEntity entity)
       at Microsoft.Crm.ObjectModel.GenericActivityServiceBase.InternalSetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)
    [2014-03-18 23:55:18.830] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread:   14 |Category: Platform |User: a4b2dbdf-34c8-e111-aed5-002dd802feb4 |Level: Error |ReqId: 9a13d672-b7fc-4b33-9c46-65defd9494f4 | MessageProcessor.Execute  ilOffset = 0x1C5
    >MessageProcessor fail to process message 'SetStateDynamicEntity' for 'new_feedback'.
    [2014-03-18 23:55:18.830] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   14 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 9a13d672-b7fc-4b33-9c46-65defd9494f4 | ExceptionConverter.ConvertToFault  ilOffset = 0x69
    >UNEXPECTED: no fault?
    [2014-03-18 23:55:18.830] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   14 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 9a13d672-b7fc-4b33-9c46-65defd9494f4 | ExceptionConverter.ConvertMessageAndErrorCode  ilOffset = 0x23B
    >System.Collections.Generic.KeyNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5AD6ED7C: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    >   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    >   at Microsoft.Crm.AuditLib.GetActionBasedOnState(Int32 stateCode, String entityName, IPluginExecutionContext context)
    >   at Microsoft.Crm.AuditLib.GetAction(IPluginExecutionContext context, Boolean useParentMessageName)
    >   at Microsoft.Crm.AuditBase.LogAuditData(IPluginExecutionContext context, Guid objectId, Boolean allowEntityOnlyAudit, EntityMetadata entityMetadata)
    >   at Microsoft.Crm.AuditCreateUpdatePlugin.Execute(IServiceProvider serviceProvider)
    >   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
    >   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    [2014-03-18 23:56:33.995] Process: w3wp |Organization:22d970b4-1728-4e86-aa28-82b6777fb3ac |Thread:   42 |Category: Exception |User: d3996cae-3ec5-4a68-bd5f-88077718dcd5 |Level: Error |ReqId: b5b22006-b585-4b5c-ac3d-2f1b7ad93f98 | CrmException..ctor  ilOffset = 0x7
     at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x7
     at CrmException..ctor(String message, Int32 errorCode)  ilOffset = 0x5
     at CrmObjectNotFoundException..ctor(BusinessEntityMoniker moniker)  ilOffset = 0x39
     at BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode, DatabaseQueryTarget queryTarget)  ilOffset = 0x19
     at BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode)  ilOffset = 0x7
     at BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)  ilOffset = 0xF
     at BusinessProcessFlowCacheLoader.LoadCacheData(Guid key, IOrganizationContext context)  ilOffset = 0xFB
     at CrmMultiOrgCacheBase`2.CreateEntry(TKey key, IOrganizationContext context)  ilOffset = 0x8
     at CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)  ilOffset = 0x26
     at BusinessProcessFlowServiceInternalHandler`1.TryRetrieveBusinessProcess(Guid processId, ExecutionContext context)  ilOffset = 0x7
     at BusinessProcessFlowServiceInternalHandler`1.RetrieveProcessWithFallback(String entityLogicalName, EntityReference process, ExecutionContext context)  ilOffset = 0x54
     at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF
     at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x25
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0x89
     at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F
     at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)  ilOffset = 0x57
     at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)  ilOffset = 0x58
     at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1C5
     at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4
     at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x16E
     at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext context, Boolean returnResponse)  ilOffset = 0x16A
     at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x3D
     at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x24
     at InprocessServiceProxy.ExecuteCore(OrganizationRequest request)  ilOffset = 0x34
     at PlatformCommand.XrmExecuteInternal()  ilOffset = 0xF6
     at ProcessControlProcessCache.GetProcessEntity(Guid preferredProcessId, Int32 entityTypeCode, Boolean specificProcess)  ilOffset = 0x4D
     at ProcessControlProcessCache.GetProcess(Guid parentEntityId, Int32 entityTypeCode)  ilOffset = 0xEE
     at ProcessControlDataBuilder.LazyLoadProcess()  ilOffset = 0x30
     at Lazy`1.CreateValue()  ilOffset = 0x61
     at Lazy`1.LazyInitValue()  ilOffset = 0x86
     at ProcessControlDataBuilder.get_ProcessId()  ilOffset = 0x0
     at ReadFormDataBuilder..ctor(String recordId, String entityTypeCode, Guid formId, FormFactor formFactor)  ilOffset = 0xE9
     at ReadFormDataBuilder..ctor(String recordId, String entityTypeCode, FormFactor formFactor)  ilOffset = 0x9
     at ReadFormPage.PopulateFormDescriptorAndDataBuilder()  ilOffset = 0x193
     at ReadFormPage.OnPreInit()  ilOffset = 0x95
     at AppPage.OnInit(EventArgs e)  ilOffset = 0xA
     at Control.InitRecursive(Control namingContainer)  ilOffset = 0xFF
     at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x2CD
     at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x3C
     at Page.ProcessRequest()  ilOffset = 0x14
     at Page.ProcessRequest(HttpContext context)  ilOffset = 0x33
     at HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)  ilOffset = 0x36A
     at HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)  ilOffset = 0x204
     at HttpServerUtility.Transfer(String path)  ilOffset = 0x18
     at Control.PreRenderRecursiveInternal()  ilOffset = 0x54
     at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x6D3
     at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x3C
     at Page.ProcessRequest()  ilOffset = 0x14
     at Page.ProcessRequest(HttpContext context)  ilOffset = 0x33
     at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D
     at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15
     at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A
     at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C
     at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A
     at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B
    >Crm Exception: Message: workflow With Id = 144e7313-4a26-4f3b-b6c4-8ed18b4f3452 Does Not Exist, ErrorCode: -2147220969
    [2014-03-18 23:56:43.922] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread:   14 |Category: Platform.Sdk |User: a4b2dbdf-34c8-e111-aed5-002dd802feb4 |Level: Error |ReqId: f08ea730-8da9-4309-a335-3e610f619b7a | VersionedPluginProxyStepBase.Execute  ilOffset = 0x65 

    Thanks,
    Arvind


    Regards, Arvind

    Wednesday, March 19, 2014 7:58 AM