Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

GP 2010 Locking up during posting

Posted on by 2,410

Over the last 5 days we've had postings lock up GP 4 times.  It cascades to where several other users receive very poor performance in GP.  It has happened to two users so far.  

When I check SQL Activity Monitor I see that there is a lock on the master database from the locked up user's SQL login, and it's blocking the other user's processes.  Once I kill that process in SQL the batch is fine and so are the other users.  

Sales batches get posted several times a day and only a handful have had this happen.  

Any suggestions for tracking down the cause?  

*This post is locked for comments

  • Brian_DiFi Profile Picture
    Brian_DiFi 2,410 on at
    RE: GP 2010 Locking up during posting

    Yes, the GP processes were blocked by the process from the connection to the Master database.  

    It's on version 11.00.2164, we rebooted the Sunday before, and did again this weekend.  

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: GP 2010 Locking up during posting

    The locks were on the master database? Is it always the same user(s)? Has anything change in your environment? When was the last time this server was rebooted?

  • Brian_DiFi Profile Picture
    Brian_DiFi 2,410 on at
    RE: GP 2010 Locking up during posting

    Thank you, I did that and it was the users's session to the master database.  When I ran a trace on the session it didn't return anything.  I then killed the process and the blocks were removed.  

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: GP 2010 Locking up during posting

    Your first port of call is to run in SSMS.

    select * from sys.dm_exec_requests

    where blocking_session_id <> 0   -- Session_id is the session that is locked and block_sssion_id is the session doing the blocking

    This will return the sessions that are being blocked, and the sessions that are blocking them.

    Once you have these:

    select * from sys.sysprocesses

    where spid = (select blocking_session_id from sys.dm_exec_requests

    where blocking_session_id <> 0)

    Hopefully this will track you down to the user and then  find out what that user is doing.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans