Master Scheduling Deadlock Errors

  • Master Scheduling Deadlock Errors

    Posted by DSC Communities on February 13, 2020 at 5:28 am
    • Paul Fildes

      Member

      February 13, 2020 at 5:28 AM

      Occasionally, I am getting the following error message from running Master scheduling which is run as a batch job during the night;
      Cannot select a record in Net requirements (ReqTrans).
      Deadlock, where one or more users have simultaneously locked the whole table or part of it.


      I was getting this error when I originally made use of 8 helpers, but reducing this to 0 seemed to resolve the issue, however it has begun to reoccur. There doesn’t appear to be an issue with the item setup as I can manually run master scheduling without error.

      Has anyone else encountered this issue and is there a workaround or a solution?

      I’m thinking that the code needs amending to include Try..catch..retry keywords.

      ——————————
      Paul Fildes
      Steelite International Ltd
      Stoke-On-Trent
      ——————————

    • AndrĆ© Arnaud de Calavon

      Member

      February 13, 2020 at 5:30 PM

      Hi Paul,

      Which exact version of AX 2012 are you using? Have you searched LCS for a potential known issue?

      ——————————
      kind regards,

      AndrƩ Arnaud de Calavon
      Product manager, Microsoft MVP – Microsoft Dynamics Business Solutions
      ——————————
      ——————————————-

    • Paul Fildes

      Member

      February 26, 2020 at 6:10 AM

      Hi Andre
      We are using AX 2012 R3 (CU10, I believe). I did check LCS when we first encountered the issue, but scheduling the operation with zero helpers seemed to solve it, however it has returned. I will check again
      Thanks,
      Paul

      ——————————
      Paul Fildes
      Steelite International Ltd
      Stoke-On-Trent
      ——————————
      ——————————————-

    • Patricia Liekens

      Member

      February 14, 2020 at 2:21 AM

      We have had similar issues, getting worse and worse over time, mainly when using helpers, but also occasionally without helpers. Below some of the actions we have taken, to solve the issue :

      Custom code

      Re-designĀ custom code in classReqCalc Note: Part 1 (updating fields)

      Clean orphan data

      SQL job to clean up Orphan data

      PAGE lock (REQ)

      Disable PAGE lock for Main REQ tables

      New Index

      New Index creation on ReqTransTable

      Circularity checks

      Clean systematically circularity checks

      PAGE lock (Batch)

      Disable PAGE lock for Main Batch tables

      PAGE lock (ReqLog)

      Disable PAGE lock for ReqLog

      For us the sum of these actions solved the issues. Good luck

      ——————————
      Patricia Liekens
      LantmƤnnen Unibake Holding A/S
      Copenhagen
      ——————————
      ——————————————-

    DSC Communities replied 5 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Master Scheduling Deadlock Errors’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!