Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Audit Log Management screen shows dates incorrectly and is also missing logs

(0) ShareShare
ReportReport
Posted on by

The Audit Log Management screen is showing the dates wrong, there are also logs missing in the CRM view

Anyone know how to fix it?   Thanks!

I used the following query in SQL:

IF (CONVERT(int, (SELECT SERVERPROPERTY('EngineEdition'))) = 3) 
        BEGIN 
                SELECT  partition_number AS 'PartitionNumber' 
                                , prv.value AS 'End Date' 
                                , used_page_count*8 AS 'Size in KB' 
                FROM sys.dm_db_partition_stats pst LEFT OUTER JOIN sys.partition_range_values prv ON prv.boundary_id = pst.partition_number 
                WHERE object_id = object_id('AuditBase') 
                AND index_id in (0,1) 
        END 
ELSE 
        BEGIN 
                SELECT  DATENAME(qq, CreatedOn) AS 'Quarter' 
                                , YEAR(CreatedOn) AS 'Year' 
                                , COUNT(*) AS 'Rows' 
                FROM AuditBase 
                GROUP BY DATENAME(qq, CreatedOn), YEAR(CreatedOn) 
                ORDER BY 'Year','Quarter' 
        END

View from CRM:

pastedimage1595417483392v1.png

view from SQL:

pastedimage1595417510121v2.png

  • G.Vetere Profile Picture
    G.Vetere on at
    RE: Audit Log Management screen shows dates incorrectly and is also missing logs

    Hi Gustavo

    We are using Enterprise version

    What do those queries do?

    We are running CRM 2015 RTM version

  • RE: Audit Log Management screen shows dates incorrectly and is also missing logs

    Hello G.Vetere,

    I hope you are well and safe.

    Basically we need pay attention about the SQL version, only version that supports partition is Enterprise.

    If your SQL server is Enterprise, you can use these queries:

    select * from sys.partition_functions

    select * from sys.partition_parameters

    select * from sys.partition_range_values

    Based on the print-screen (CRM vision), apparently the rendering is not so good indeed.

    Confirm if you are using the latest update package for CRM and eventually raise a ticket with Microsoft support for further investigation.

    Regards,

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans