Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

MR2012 Error - Datamart refresh

Posted on by 715

A customer has a problem with MR2012 since creating a new SL Application database with a fiscal year. They had initially created and later removed the same company in a separate SL Application database because that setup was for a calendar year. The MR2012 services now report the following error when trying to refresh the datamart:

System.Data.SqlClient.SqlException (0x80131904): Cannot insert duplicate key row in object 'Datamart.Period' with unique index 'PeriodIndex_DateRange'. 

I suspect the duplicate row is related to the original company setup being integrated with MR. Can the period(s) from the initial integration be removed from the table Datamart.Period to allow the other integrations to resume? If not, will a Datamart rebuild alone fix this problem, or does a change to the SL companies need to happen before a DM rebuild?

*This post is locked for comments

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans