Asked by:
Cannot insert duplicate key - Warning in CRM 2011 server

Question
-
Hi,
This is the error description from one of our server.
Exception information:
Exception type: CrmException
Exception message: Cannot insert duplicate key.
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.CreateCommand.Execute()
at Microsoft.Crm.Application.Platform.AppFormFilter.SetLastViewedForm(Guid formId)
at Microsoft.Crm.Application.Forms.CustomizableForm.GetFormDescriptor(Int32 typeCode, FormType formType)
at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, FormType formType)
at Microsoft.Crm.Application.Components.PageHandlers.AccountRecordPageHandler.ConfigureFormHandler()
at Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName)
at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Could any body help me with this.
Sreeni Pavalla
- Moved by Andrii ButenkoMVP, Moderator Sunday, January 27, 2013 12:20 PM
Thursday, January 24, 2013 7:24 PM
All replies
-
Can you tell me which rollup version you have, as I remember there was a similar issue in RU6 or 7 (either of the two) and was addressed in RU8. Maybe you can try updating your server to this rollup and see if the error still pops up.
If you are already on RU8 or above, can you briefly describe when does this error comes.
Please don't forget to mark the answer, if it helps. Piyush
Friday, January 25, 2013 3:20 AM -
We have RU 8 installed in our machines. There were no errors after installing Roll Ups. Suddenly from last 2 days it started erroring.
Thank you,
Sreeni Pavalla
Friday, January 25, 2013 9:20 AM -
We have the same issue, have you figure it out ?Monday, December 23, 2013 3:05 PM
-
Hi,
What are you doing when you get this error?
Do you have any custom code added to the entity that's causing this?
Have you tried to disable that code (if any are present)?Regards
Rickard Norström Developer CRM-Konsulterna
http://www.crmkonsulterna.se
Swedish Dynamics CRM Forum: http://www.crmforum.se
My Blog: http://rickardnorstrom.blogspot.seMonday, December 30, 2013 8:29 AM