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

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

MR2012 Error - Datamart refresh

(0) ShareShare
ReportReport
Posted on by 719

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

I have the same question (0)

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans