Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

MR 2012 Data Mart Needs Rebuild Too Often

(0) ShareShare
ReportReport
Posted on by 75,848 Moderator

Management Reporter needs rebuild data mart often.  For the third time in four months I had to rebuild the data mart for a client. This week they were running reports fine until today and then all data for 2014 just stopped appearing on the reports. You rebuild the data mart and all returns to normal. Is this a sign of a more serious problem? They are on CU 9.

*This post is locked for comments

  • Verified answer
    Redbeard Profile Picture
    12,931 on at
    RE: MR 2012 Data Mart Needs Rebuild Too Often

    I seem to remember last year, on a much earlier version of Management Reporter, running into a similar problem.  I made sure the services created by the install for Management Reporter were set to auto-recover when they failed in services on the server having the problem.  

    This resolved the problem, but I wasn't fond of not knowing why the services were failing on the machine, so I moved Management Reporter to a different virtual machine.  I did not wrangle the SQL databases.  I just installed Management Reporter on another machine and Exported and Imported the Building Blocks.  It took about an hour.

  • Leahs Profile Picture
    on at
    RE: MR 2012 Data Mart Needs Rebuild Too Often

    Potentially there was an issue with the one of the 9 functions updating the data mart integration.  To verify the last time all of the process completed open the Configuration Console and select the integration and verify the 'last time everything was fully integrated' data.  If the date has not updated and is over three days old there is potential for data not to update correctly in the data mart database. 

    In the Configuration Console > Logs data mart integration review the logs for any error messages that could be contributing to the issue.  You could also run the following script against the Management Reporter database.

    select CIG.[Description]

    , ST.[Name]

    , SM.[Text]

    , DATEADD(minute, DATEDIFF(minute,GETUTCDATE(),GETDATE()), SL.[StartTime]) as LocalStartTime

    , DATEADD(minute, DATEDIFF(minute,GETUTCDATE(),GETDATE()), SL.[EndTime]) as LocalEndTime

    , SL.[TotalRetryNumber]

    , SL.[IsFailed]

    , STT.[Name] as TaskType

    from [Scheduling].[Log] SL with (nolock)

    inner join [Scheduling].[Task] ST with (nolock) on SL.TaskId = ST.Id

    inner join [Scheduling].[Message] SM with (nolock) on SL.Id = SM.LogId

    inner join [Scheduling].[TaskType] STT with (nolock) on ST.TypeId = STT.Id

    inner join [Connector].[IntegrationGroup] CIG with (nolock) on CIG.[IntegrationId] = ST.[CategoryId]

    order by SL.[StartTime] desc

     

    Below is a SQL query that will help verify the current data mart process when ran against the Management Reporter database.  The state Type of 3 mean the function is currently in progress and 5 mean it is complete.

    select [Connector].[IntegrationGroup].[Description], [Scheduling].[Task].[Name],
    [Scheduling].[TaskState].[Progress], [Scheduling].[TaskState].[StateType],
    [Scheduling].[TaskState].[LastRunTime], [Scheduling].[TaskState].[NextRunTime],
    [Connector].[Map].[ContinueOnRecordError], [Scheduling].[Trigger].[UnitOfMeasure],
    [Scheduling].[Trigger].[Interval], [Scheduling].[Trigger].[IsEnabled]
    from [Connector].[Map] with (nolock)
    inner join [Scheduling].[Task] on [Scheduling].[Task].[Id] = [Connector].[Map].[MapId]
    inner join [Scheduling].[TaskState] on [Scheduling].[Task].[Id] = [Scheduling].[TaskState].[TaskId]
    inner join [Connector].[IntegrationGroup] on [Connector].[IntegrationGroup].[IntegrationId] = [Scheduling].[Task].[CategoryId]
    inner join [Scheduling].[Trigger] on [Scheduling].[Task].[TriggerId] = [Scheduling].[Trigger].[Id]
    order by [Connector].[IntegrationGroup].[Description], [Scheduling].[Task].[Name]

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans