I can provide a complete solution covering all three aspects of your analytics refresh issue:
Analytics Data Mart Refresh:
The core problem is that Creatio’s incremental data mart refresh only processes records modified after the last refresh timestamp. Your bulk import created records with historical CreatedOn dates, but the data mart’s ‘last processed’ marker is still set to before your import. Here’s how to fix it:
- Navigate to System Designer > Lookups > ‘SysAnalyticsDataMart’ lookup
- Find the record for your process analytics dashboard
- Clear or set the ‘LastRefreshDate’ field to a date before your oldest imported record
- Trigger a manual refresh through Configuration > SQL Console:
Execute the stored procedure ‘tsp_RefreshProcessAnalyticsMart’ with parameter @FullRefresh = 1
Alternatively, use the System Designer > Analytics section and select ‘Force Full Rebuild’ for the Process Analytics data mart specifically, rather than rebuilding all marts.
Bulk Data Import Impact:
When importing historical process data, you must ensure several fields are correctly populated for analytics to work:
- StatusId must match your system’s process status lookup values (typically: 1=Running, 2=Completed, 3=Error, 4=Cancelled)
- CreatedOn and ModifiedOn timestamps must reflect actual historical dates
- ProcessSchemaId must match existing process definitions in your system
- All required process parameter values must be present
After import, run a validation query to check data quality:
SELECT COUNT(*) as InvalidRecords FROM SysProcessLog WHERE StatusId NOT IN (1,2,3,4) OR CreatedOn IS NULL OR ProcessSchemaId NOT IN (SELECT Id FROM SysSchema WHERE ManagerName = ‘ProcessSchemaManager’)
Any records returned need correction before analytics will process them correctly.
Dashboard Update Triggers:
Process analytics dashboards don’t automatically detect bulk imported data because they rely on real-time process completion events to trigger metric updates. To force recognition of imported data:
- Clear the dashboard cache: System Settings > ‘ClearDashboardCache’ = true, then restart the application
- Update dashboard widget date filters to explicitly include your historical date range
- Verify widget data sources are querying the correct process log tables (SysProcessLog, SysProcessElementLog)
- For each dashboard widget, check the ‘Refresh Interval’ setting - set to ‘On Open’ temporarily to see immediate updates
For future bulk imports, implement this workflow:
- Import data during maintenance window
- Immediately trigger full data mart refresh
- Validate dashboard metrics against known totals from source data
- Clear application cache before users access updated dashboards
Regarding performance during rebuild: Monitor using the ‘Database Performance’ dashboard in System Designer. If CPU exceeds 80% or query wait times spike, pause the rebuild. The rebuild process is resumable - it will continue from where it stopped when restarted. Schedule completion during your next maintenance window.
Finally, document this process for future historical data imports and consider creating a scheduled job that automatically triggers data mart refresh after detecting bulk import operations (check for >1000 records inserted in SysProcessLog within a 1-hour window).