web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Unable to assign records

(0) ShareShare
ReportReport
Posted on by 608

I am trying to assign records from a disabled user to an enabled user. I was able to assign 29 orders successfully, but I get the error below on 14 records. I have tried:

  • Disabling Snapshot Cloning workflows and then assigning, but was not successful.
  • Opening the records themselves and verified there are no required fields without data in them

Any suggestions on what else to try?

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Cannot insert duplicate key. Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object sandboxTraceSettingsObj) at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.ExecuteInternal(OrganizationRequest request) at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.CreateInternal(Entity entity) at Cobalt.Adapters.Platform.Crm2011.DataRequestHandler.Create(DynamicEntity entity) at Cobalt.Components.Snapshot.BusinessObjects.SnapshotBusinessObject.Clone() at Cobalt.Components.Snapshot.Plugins.SnapshotEventHandler.PostUpdate() at Cobalt.Components.Snapshot.Plugins.EventHandler.Execute(String messageName, RequestStage stage, Guid businessUnitId, Guid userId, List`1 parentEntityCollection) --- End of inner exception stack trace --- 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 Cobalt.Adapters.Platform.Core.EventHandlerInfo.Execute(Object[] constructorParameters, Object[] methodParameters) at Cobalt.Components.Snapshot.Plugins.EventDispatcher.DispatchEvent(Object sender, EventSource source, String eventName, RequestStage stage, Boolean async, DynamicEntity preImageEntity, DynamicEntity postImageEntity, Object[] parameters) at Cobalt.Adapters.Platform.Crm2011.PluginAdapter.Execute(IServiceProvider serviceProvider)


Thank you in advance

I have the same question (0)
  • Verified answer
    Barbara Forsman Profile Picture
    608 on at

    I found I had to remove the associated Snapshot Activities on the Order. After I did this, the record re-assigned with no issues.

  • Suggested answer
    Mirette Shafik Profile Picture
    20 on at

    Hi Barbara,

    Glad that it works for now , we'll be closing this thread.

    Thanks!

    Regards,

    Mirette Shafik

    Microsoft Dynamics 365 Engineer

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans