Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Cannot create a record in Database log (SysDataBaseLog). record already exist

Posted on by 467

Hi All,

AX version is 2012 R2CU7

Cannot create a record in Database log (SysDataBaseLog) record already exist.

I am getting the above error when ever i create anew record on any table that have log enabled on.

I cleared some old database log but problem is not yet resolved.

Please assist me if any one have any solution for that.

Regards

Reyaz Ahamad

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Cannot create a record in Database log (SysDataBaseLog). record already exist

    Try to Restart the AOS service

  • 5400 Profile Picture
    5400 7,160 on at
    RE: Cannot create a record in Database log (SysDataBaseLog). record already exist

    Please check.

    community.dynamics.com/.../125912

  • Reyaz@Alfa Profile Picture
    Reyaz@Alfa 467 on at
    RE: Cannot create a record in Database log (SysDataBaseLog). record already exist

    Hi,

    In table SYSSEQUENCES, the value of the field NextVal for the table SysdatabaseLog is not maxed out. When checking in the SysdatabaseLog table itself, the highest RecId is far from being set to the maximum value. I do testing by creating some record in SysDataBaseLog and found the system is not picking up the nextVal for new recId, it is picking up some random number. Thats why some users are  getting the issue while others are able to work. What could be the reason for picking up a random num for recId.

    Regards

    Reyaz Ahamad

  • 5400 Profile Picture
    5400 7,160 on at
    RE: Cannot create a record in Database log (SysDataBaseLog). record already exist

    Hi Reyaz,

    Please check recid got exceed or not. there is table in AOT --> \System Documentation\Tables\SystemSequences. Please reset and test as per Tableid.

    Thanks

    Bhaskar

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Cannot create a record in Database log (SysDataBaseLog). record already exist

    Hi Reyaz,

    The RecId can indeed cause the issue now. There is a system table called SystemSequences. You can browse for this table in the SQL Server management studio. It contains information about minimum, maximum and also the next record id per table. If you know the table ID of the SysDatabaseLog, you can verify the values. Probably the NextVal field contains an already used number. If so, you can try to find the highest recid in the SysDatabaseLog and adjust this value. Also consider if you can disable some logging. I do not believe you have reached the maxvalue. If you did, you really logged too much...

  • Reyaz@Alfa Profile Picture
    Reyaz@Alfa 467 on at
    RE: Cannot create a record in Database log (SysDataBaseLog). record already exist

    Hi André,

    Environment is fully and correctly compiled. This environment have been functioning for 2 years and have customization in AX. Problem is start coming from past 2 days. We are using database logging hugely. So first solution i tried to cleanup some DB log but that didn't resolve issue.

    Recid is the primary key for sysdatabaselog table so what i guess is that recId is repeating for sysdatabaselog table. I dont know how recId is repeating thats really a strange.

    Is there any max limit defined for recId for any particular table in AX.

    Is there any way to overcome issue.

    Thanks

    Reyaz Ahamad

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Cannot create a record in Database log (SysDataBaseLog). record already exist

    Hi Reyaz,

    I have not faced this problem before. Make sure your environment is fully and correctly compiled (x++ & CIL).

    Can you tell us if you have customizations?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans