web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by 2

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

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,171 Super User 2025 Season 2 on at

    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?

  • Reyaz@Alfa Profile Picture
    2 on at

    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

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,171 Super User 2025 Season 2 on at

    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...

  • 5400 Profile Picture
    7,162 on at

    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

  • Reyaz@Alfa Profile Picture
    2 on at

    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
    7,162 on at

    Please check.

    community.dynamics.com/.../125912

  • Community Member Profile Picture
    on at

    Try to Restart the AOS service

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans