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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Deadlock in SYSLASTVALUE and BATCHGLOBAL table

(0) ShareShare
ReportReport
Posted on by

Hi All,

Some of my client is still using AX 2009(Kernal version - 5.0.1600.3677). The issue is my AX was on hung state for some time and it not allowing to do any operation. When I checked in SQL database I get below two query was creating blocking. Issue was for 30 to 40 min and post that this blocking get cleated automatically.

Do you have any idea what this query mean and how we can prevent it in future.

UPDATE SYSLASTVALUE SET VALUE=@P1,RECVERSION=@P2 WHERE (((((((USERID=@P3) AND (RECORDTYPE=@P4)) AND (ELEMENTNAME=@P5)) AND (DESIGNNAME=@P6)) AND (ISKERNEL=@P7)) AND (COMPANY=@P8)) AND (RECVERSION=@P9))

UPDATE BATCHGLOBAL SET LASTPROCFINISHEDJOBS=@P1,RECVERSION=@P2 WHERE ((NAME=@P3) AND (RECVERSION=@P4))

Thanks in Advance.

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,988 Super User 2026 Season 1 on at

    Hi Binita,

    Were these two the head blockers? Update SysLastValue means that a user configuration will be saved. This could be a size of a form or e.g. report parameters. This should not cause such a delay. The second is related to the batch framework.

    You can check if you have fragmented indexes. If so, reorganize or rebuild the indexes on the SQL database tables.

    When you have this issue again, monitor if it is the head blocker or not. You need to find the SQL queries of the head blocker.

  • Binita Profile Picture
    on at

    Hi Andre

    Yes this was head blocker , and I get some more query from DB team related to above mention query respectively.

    EXEC sp_execute 75,0x07FD30F41E0000010006CE0100762E750064006B000000010078080A0301008B0075006E006F000000010078080A0305009402750064006B00000043007805191612007404750064006B000000D0AE7808060312003C0075006E006F000000030078080C0313004F31750064006B000000C08578080A031300010075006E006F00000010B978080B0316000

    (@P1 datetime,@P2 int,@P3 nvarchar(31),@P4 int)UPDATE BATCHGLOBAL SET LASTPROCFINISHEDJOBS=@P1,RECVERSION=@P2 WHERE ((NAME=@P3) AND (RECVERSION=@P4))

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,988 Super User 2026 Season 1 on at

    Hi Binita,

    Can you check if there is an appropriate index on these tables or if there is a missing index? If there is an index, check if these are fragmented. In that case, you can reorganize or rebuild the index.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 653

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 493 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 317 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans