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)

MRP batch job looping forever

(0) ShareShare
ReportReport
Posted on by

Hi all,

I've got MRP running as a batch job on 2 AX partitions. One of them (let's call it Partition A) runs perfectly within 1 hour or so, the other one (let's call it Partition B) within 20 minutes or so on a good day.

Here's the problem: most of the time, the one running on Partition B seems to run forever. If we let it run, it will eventually finish after running for 18 hours and seems like it's looping on the following SQL query:

DECLARE @res int; EXEC @res = SP_GETAPPLOCK @resource = N'ReqPlanVersion:llg:MasterPlan:5637254842', @lockmode = 'update', @locktimeout = -1; SELECT @res;

Running a few minutes trace on the AOS server, it's doing the following in a loop:

  • ReqPlanManager::acquireUpdateLockOnPlanVersion
  • ReqReaderWriterLock::enterUpdateLock
  • ReqReaderWriterLock::enterInternal
  • ReqPlanManager::formatLockName
  • ReqPlanVersion::find

In the Session Logs, it seems like it's actually finished doing the job but somehow never releases the lock in SQL.

Processing time:

  • Update: 7 min
  • Coverage: 5 min
  • Action message: 1 min
  • Futures message: 6 min
  • Copy plan: 0 min 
  • Auto-firming: 1 min

I do not have extensive knowledge in MRP so still trying to troubleshoot. 

Configuration:
AX 2012 R3 CU12
Batch running with 15 helpers accross 2 batch servers. 
No deadlock found in SQL during the execution of the job.

Any help would be greatly appreciated.

Thanks and regards,
Kevin

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Update: Been using fewer helpers and didn't change a thing. What seems to have fixed it is modifying the batch group so that it actually runs on only 1 AOS server instead of 2.

    Not exactly too sure why but that worked for me.

    Cheers.

    Kevin

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