Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM 2011 organisation upgrade to 2013 failed - sql exception duplicate key on ActivityPointerBase

Posted on by 4,084

Hi 

I'm in the process of upgrading CRM 2011 to 2013

Server upgrade went smoothly but when it comes to the organisation upgrade it ended up failing with the following sql exception from the log : 

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.Data.SqlClient.SqlException:
The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo.ActivityPointerBase'
and the index name 'fndx_Email_MessageId'.
The duplicate key value is (0, <20150309-17115912-2b8@RD-HO-WS4.RDTDMZ.LOCAL>, cc8f99fd-486e-4c39-aef7-7dd4d5fdbd0a).

 

 

When i checked the subject table in SQL it shows actual duplication for the same message id , not sure if this a common issue or it's more related to our own data 

 

Appreciate any help 

Thank you!

 

 

*This post is locked for comments

  • Alaa Ramadan Profile Picture
    Alaa Ramadan 4,084 on at
    RE: CRM 2011 organisation upgrade to 2013 failed - sql exception duplicate key on ActivityPointerBase

    Not really, I did not get any help from MS. I just deleted first one of each duplicate record and it worked fine

    There was no big risk in my case.

  • NateG Profile Picture
    NateG on at
    RE: CRM 2011 organisation upgrade to 2013 failed - sql exception duplicate key on ActivityPointerBase

    Hi Alaa,

    Do you remember what you did to get past this? Im running into the exact same thing, if I delete duplicates directly from SQL the upgrade works. But would prefer a more supported way than deleting records in SQL. Did MS support have a hotfix for you?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans