Duplicate key error while tracking a mail with outlook

提議的解答 Duplicate key error while tracking a mail with outlook

  • Donnerstag, 26. April 2012 08:22
     
      Enthält Code

    Currently, when a user tries to track a email with outlook in our CRM, we get the following error in our trace logs. This is very urgent for us!! 

    We are using CRM 2011 U7 with SQL server 2008R2. Our installation was an upgrade from crm 4.

    Exception: System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'ndx_PrimaryKey_ActivityPointer'. Cannot insert duplicate key in object 'dbo.ActivityPointerBase'. The duplicate key value is (abdfa27a-098e-e111-ad51-005056b60008).
    Violation of PRIMARY KEY constraint 'PK_EmailBase'. Cannot insert duplicate key in object 'dbo.EmailBase'. The duplicate key value is (abdfa27a-098e-e111-ad51-005056b60008).
    The statement has been terminated.
    The statement has been terminated.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Microsoft.Crm.CrmDbConnection.InternalExecuteWithRetry[TResult](Func`1 ExecuteMethod, IDbCommand command)
       at Microsoft.Crm.CrmDbConnection.InternalExecuteNonQuery(IDbCommand command, Boolean capturePerfTrace)
       at Microsoft.Crm.CrmDbConnection.ExecuteNonQuery(IDbCommand command, Boolean impersonate, Boolean capturePerfTrace)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.ExecuteNonQuery(IDbCommand command, ISqlExecutionContext context)
    [2012-04-26 10:16:08.046] Process: w3wp |Organization:b4d6410a-8825-408b-b507-785190ee33f9 |Thread:   19 |Category: Exception |User: 21ec9e3c-49f4-dd11-88db-005056910ae1 |Level: Error | CrmException..ctor
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
    	at CrmException..ctor(String message, Int32 errorCode)
    	at BusinessProcessObject.DbCreate(IBusinessEntity entity, ExecutionContext context)
    	at BusinessProcessObject.DoCreate(IBusinessEntity entity, ExecutionContext context)
    	at RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    	at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    	at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    	at LogicalMethodInfo.Invoke(Object target, Object[] values)
    	at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
    	at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
    	at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    	at Pipeline.Execute(PipelineExecutionContext context)
    	at MessageProcessor.Execute(PipelineExecutionContext context)
    	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
    	at ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext)
    	at ExtensiblePlatformMessageDispatcher.CreateWithInvocationSource(BusinessEntity entity, Int32 invocationSource, ExecutionContext context)
    	at BusinessProcessObject.Create(IBusinessEntity entity, ExecutionContext context)
    	at GenericActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
    	at CommunicationActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
    	at EmailService.Deliver(Boolean userPromote, Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, BusinessEntityCollection attachments, Guid campaignResponseId, Entity emailDeltaEntity, ExecutionContext context)
    	at EmailService.DeliverPromote(Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, Entity extraProperties, BusinessEntityCollection attachments, ExecutionContext context)
    	at RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    	at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    	at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    	at LogicalMethodInfo.Invoke(Object target, Object[] values)
    	at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
    	at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
    	at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    	at Pipeline.Execute(PipelineExecutionContext context)
    	at MessageProcessor.Execute(PipelineExecutionContext context)
    	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
    	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)
    	at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at 
    	at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
    	at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    	at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    	at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
    	at MessageRpc.Process(Boolean isOperationContextSet)
    	at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
    	at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
    	at ChannelHandler.AsyncMessagePump(IAsyncResult result)
    	at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
    	at AsyncResult.Complete(Boolean completedSynchronously)
    	at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
    	at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
    	at AsyncResult.Complete(Boolean completedSynchronously)
    	at AsyncQueueReader.Set(Item item)
    	at InputQueue`1.Dispatch()
    	at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
    	at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
    	at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    >Crm Exception: Message: Cannot insert duplicate key., ErrorCode: -2147220937
    [2012-04-26 10:16:08.049] Process: w3wp |Organization:b4d6410a-8825-408b-b507-785190ee33f9 |Thread:   19 |Category: Platform.Sdk |User: 21ec9e3c-49f4-dd11-88db-005056910ae1 |Level: Error | VersionedPluginProxyStepBase.Execute
    >Web Service Plug-in failed in SdkMessageProcessingStepId: {8C3B8615-ECD8-DB11-B397-0019B9204DA9}; EntityName: email; Stage: 30; MessageName: Create; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.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._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       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.BusinessEntities.CrmDuplicateRecordException: Cannot insert duplicate key.
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DbCreate(IBusinessEntity entity, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoCreate(IBusinessEntity entity, ExecutionContext context)
    .
    [2012-04-26 10:16:08.050] Process: w3wp |Organization:b4d6410a-8825-408b-b507-785190ee33f9 |Thread:   19 |Category: Exception |User: 21ec9e3c-49f4-dd11-88db-005056910ae1 |Level: Error | CrmException..ctor
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode)
    	at RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)
    	at RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    	at RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
    	at VersionedPluginProxyStepBase.WrapExceptionToThrow(CrmException exception)
    	at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    	at Pipeline.Execute(PipelineExecutionContext context)
    	at MessageProcessor.Execute(PipelineExecutionContext context)
    	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
    	at ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext)
    	at ExtensiblePlatformMessageDispatcher.CreateWithInvocationSource(BusinessEntity entity, Int32 invocationSource, ExecutionContext context)
    	at BusinessProcessObject.Create(IBusinessEntity entity, ExecutionContext context)
    	at GenericActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
    	at CommunicationActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
    	at EmailService.Deliver(Boolean userPromote, Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, BusinessEntityCollection attachments, Guid campaignResponseId, Entity emailDeltaEntity, ExecutionContext context)
    	at EmailService.DeliverPromote(Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, Entity extraProperties, BusinessEntityCollection attachments, ExecutionContext context)
    	at RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    	at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    	at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    	at LogicalMethodInfo.Invoke(Object target, Object[] values)
    	at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
    	at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
    	at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    	at Pipeline.Execute(PipelineExecutionContext context)
    	at MessageProcessor.Execute(PipelineExecutionContext context)
    	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
    	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)
    	at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at 
    	at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
    	at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    	at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    	at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
    	at MessageRpc.Process(Boolean isOperationContextSet)
    	at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
    	at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
    	at ChannelHandler.AsyncMessagePump(IAsyncResult result)
    	at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
    	at AsyncResult.Complete(Boolean completedSynchronously)
    	at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
    	at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
    	at AsyncResult.Complete(Boolean completedSynchronously)
    	at AsyncQueueReader.Set(Item item)
    	at InputQueue`1.Dispatch()
    	at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
    	at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
    	at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    >Crm Exception: Message: Cannot insert duplicate key., ErrorCode: -2147220937, InnerException: Microsoft.Crm.BusinessEntities.CrmDuplicateRecordException: Cannot insert duplicate key.
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DbCreate(IBusinessEntity entity, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoCreate(IBusinessEntity entity, ExecutionContext context)
    [2012-04-26 10:16:08.051] Process: w3wp |Organization:b4d6410a-8825-408b-b507-785190ee33f9 |Thread:   19 |Category: Platform |User: 21ec9e3c-49f4-dd11-88db-005056910ae1 |Level: Error | MessageProcessor.Execute
    >MessageProcessor fail to process message 'Create' for 'email'.
    [2012-04-26 10:16:08.054] Process: w3wp |Organization:b4d6410a-8825-408b-b507-785190ee33f9 |Thread:   19 |Category: Platform.Sdk |User: 21ec9e3c-49f4-dd11-88db-005056910ae1 |Level: Error | VersionedPluginProxyStepBase.Execute
    >Web Service Plug-in failed in SdkMessageProcessingStepId: {D1CABB1B-EA3E-DB11-86A7-000A3A5473E8}; EntityName: email; Stage: 30; MessageName: DeliverPromote; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.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._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       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.BusinessEntities.CrmDuplicateRecordException: Cannot insert duplicate key.
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.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.CreateWithInvocationSource(BusinessEntity entity, Int32 invocationSource, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Create(IBusinessEntity entity, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.GenericActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.CommunicationActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.EmailService.Deliver(Boolean userPromote, Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, BusinessEntityCollection attachments, Guid campaignResponseId, Entity emailDeltaEntity, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.EmailService.DeliverPromote(Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, Entity extraProperties, BusinessEntityCollection attachments, ExecutionContext context)
    Inner Exception: Microsoft.Crm.BusinessEntities.CrmDuplicateRecordException: Cannot insert duplicate key.
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DbCreate(IBusinessEntity entity, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoCreate(IBusinessEntity entity, ExecutionContext context)
    .
    [2012-04-26 10:16:08.055] Process: w3wp |Organization:b4d6410a-8825-408b-b507-785190ee33f9 |Thread:   19 |Category: Exception |User: 21ec9e3c-49f4-dd11-88db-005056910ae1 |Level: Error | CrmException..ctor
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode)
    	at RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)
    	at RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    	at RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
    	at VersionedPluginProxyStepBase.WrapExceptionToThrow(CrmException exception)
    	at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    	at Pipeline.Execute(PipelineExecutionContext context)
    	at MessageProcessor.Execute(PipelineExecutionContext context)
    	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
    	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)
    	at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at 
    	at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
    	at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    	at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    	at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
    	at MessageRpc.Process(Boolean isOperationContextSet)
    	at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
    	at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
    	at ChannelHandler.AsyncMessagePump(IAsyncResult result)
    	at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
    	at AsyncResult.Complete(Boolean completedSynchronously)
    	at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
    	at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
    	at AsyncResult.Complete(Boolean completedSynchronously)
    	at AsyncQueueReader.Set(Item item)
    	at InputQueue`1.Dispatch()
    	at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
    	at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
    	at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    >Crm Exception: Message: Cannot insert duplicate key., ErrorCode: -2147220937, InnerException: Microsoft.Crm.BusinessEntities.CrmDuplicateRecordException: Cannot insert duplicate key. ---> Microsoft.Crm.BusinessEntities.CrmDuplicateRecordException: Cannot insert duplicate key.
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DbCreate(IBusinessEntity entity, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoCreate(IBusinessEntity entity, ExecutionContext context)
       --- End of inner exception stack trace ---
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.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.CreateWithInvocationSource(BusinessEntity entity, Int32 invocationSource, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Create(IBusinessEntity entity, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.GenericActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.CommunicationActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.EmailService.Deliver(Boolean userPromote, Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, BusinessEntityCollection attachments, Guid campaignResponseId, Entity emailDeltaEntity, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.EmailService.DeliverPromote(Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, Entity extraProperties, BusinessEntityCollection attachments, ExecutionContext context)
    [2012-04-26 10:16:08.055] Process: w3wp |Organization:b4d6410a-8825-408b-b507-785190ee33f9 |Thread:   19 |Category: Platform |User: 21ec9e3c-49f4-dd11-88db-005056910ae1 |Level: Error | MessageProcessor.Execute
    >MessageProcessor fail to process message 'DeliverPromote' for 'email'.
    

Alle Antworten

  • Samstag, 28. April 2012 08:30
     
     

    Do you encounter any error during the upgrade process?

    These seems to be some damage to the DB. Have you modified the DB directly?

    You can run a Repair for CRM, but please back up the CRM database and all your customizations.

    Thanks,


    Jackie Chen, Microsoft Online Community Support. Please remember to click “Mark as Answer” on the post that helps you. This posting is provided "AS IS" with no warranties, and confers no rights.

  • Mittwoch, 2. Mai 2012 08:45
     
     

    A repair for crm? Do you mean running the installer? Or can i just try to repair the database in some way? 

    We haven't modified the DB directly

  • Mittwoch, 9. Mai 2012 09:04
     
     
    Yes, running the installer to repair the CRM. Please back up the CRM database, all your customization and your custom reports.

    Jackie Chen, Microsoft Online Community Support. Please remember to click “Mark as Answer” on the post that helps you. This posting is provided "AS IS" with no warranties, and confers no rights.

  • Montag, 11. Juni 2012 08:33
     
     
    Doesn't fix this problem... Please someone help with this. Our users are getting tired of this.
  • Montag, 11. Juni 2012 09:41
     
     
    is this error coming for all mails or just some?

    gruss Daniel Ovadia MBSS - Microsoft Dynamics CRM MCNPS

  • Montag, 11. Juni 2012 09:44
     
     
    only some of them
  • Montag, 11. Juni 2012 09:52
     
     Vorgeschlagene Antwort

    did u applied the RU7 also on client?

    when u have an problemtaic mail, can u forward to yourself and try to track. Can u check if this will work, if one user have this problematic mailadress in one of his contacts and may restircted because someone else is the owner?

    Steps to reproduce:

    UserA creates a contact with the email address test1@test.com

    UserB opens his Outlook with CRM, clicks on New - Email, types test1@test.com in the To filed,

    clicks on Track in CRM, clicks Send => error message appears   -    or received/send an email from an new/fresh created mailadress in that one created contact.

    Note: UserB's role has "Parent: Child Business Unit" on every action on the Contacts...

    I had this issue, but for me it was sovlved with RU5. Workaround was:

    Disable auditing on any Party List Attributes (To, From, CC or BCC) that might contain anything other than only CRM entity record references.

    hope this helps


    gruss Daniel Ovadia MBSS - Microsoft Dynamics CRM MCNPS

    • Als Antwort vorgeschlagen nrodri Montag, 11. Juni 2012 22:47
    •