tester22 Posted September 7, 2021 Share Posted September 7, 2021 Hi, We have an problem that our audit log isn't getting archived: Our setting is defined so it should archive after 2 million rows. I havn't seen anything in the logs regarding this. Any pointers of where to look? Link to comment Share on other sites More sharing options...
support Posted September 7, 2021 Share Posted September 7, 2021 Hello tester22, We might need to look at the health of your system, and cannot request that on public forums. If you have an active maintenance contract for our software, could you please log your support request via the following page - https://www.clickstudios.com.au/support.aspx Thanks Click Studios Link to comment Share on other sites More sharing options...
tester22 Posted September 8, 2021 Author Share Posted September 8, 2021 Hi, Managed to solve it. If the archiving service crashes while copyting data from audit to auditarchive tables it creates conflicts and the process crashes. After removing the primarykey from auditarchive the archiving works as expected but I am getting duplicates. The running: WITH cte AS (SELECT[AuditID], [UserID], 2 row_number() OVER(PARTITION BY AuditID, UserID ORDER BY AuditID) AS [rn] 3 FROM [passwordstate].[dbo].[AuditingArchive] 4 )DELETE cte WHERE [rn] > 1 Cleans the table and I could re-enable the primary key in the archiving table. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now