Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Master Scheduling Takes 24 hours

(0) ShareShare
ReportReport
Posted on by 563

Dear Experts,

I use Microsoft Dynamic AX 2012 R

Yesterday we run Master Scheduling, but still running until now

Here is Unfinished scheduling process

pastedimage1566438410220v1.png

When I see Process task duration, Master Scheduling has stop yesterday

pastedimage1566438493524v2.png

But If I go to Planned Order, form still empty

A couple day ago, we do the same Master scheduling but we terminate it with force close because it taking too long than before and then we run it again almost 3 time with this issue

Maybe you have a solution please provide me

Thank in advance

Regards,

Bintnag

*This post is locked for comments

  • Suggested answer
    guk1964 Profile Picture
    guk1964 10,877 on at
    RE: Master Scheduling Takes 24 hours

    Your plan name is annual (which implies a lot of processing.)

    An update was released for Microsoft Dynamics AX 2012 R3 which may help you reduce Master planning run time considerably.in that case. You can find this hotfix on LCS -  KB 3159477.

    Review the number of tasks in the Master planning parameters (Master planning – Setup – Master planning parameters – group Performance) the defaults may not suit your data.

    The AOS Service can consume up to 50 GB of physical memory during the MRP execution. So it is not always better to increase multi-threading.The obvious recommendation is to make sure the AOS server is fully dedicated to the MRP.Try to run MRP  outside business hours.

    It is especially important to make sure no other tasks are requiring locks on tables used by master planning such as InventTrans, InventSumLogTTS and ReqItemTable.

    Check for contention on the database access using the SQL job “DYNPERF_Optional_Polling_for_Blocking” from DynamicsPerf tool:

    You can verify the resource available using Windows Performance monitoring: minimum available memory, working set for Ax32SERV.exe and processor Time.

    Cache. tricky. generally I would advise:

    System Administration > Setup > System >  Server Configuration:

    • Set Entire Table Cache to 512 KB
    • Increase the Global Object Cache to 500,000
    • Increase Record Cache limit for Table type transaction to 100,000
    • Make sure all transactional tables belong to the transactional Table group
    • Go to Master Planning > Setup > Master planning parameters: Set Use of cache to Maximum

    However, the use of cache is often a serious  issue for plans with large result sets. The work calendar cache may help mrp run  faster for a few items and  a short plan window but when mrp has to do heavy processing then it is probably best to go into the code and disable it.. While you are at, it also consider disabllng Reqtrans cache.

    As a good practise run SQL update statistics at least on the REQ* tables

    Most Ax systems are configured with incorrect Maxdop and Cost Threshold for Parallelism settings I,e silly default setting values that are too low and based on much order versions of SQL and lack of understanding of what they mean.. For batch processes rather than transactions a higher MAXDOP also makes sense.

     Are you running multi company mrp?

    Are you running finite scheduling/capacity planning? (it  runs single threaded)

    Did you delete the previous plan before running?

    The Dynamic negative days parameter should be checked. The value of the Negative days parameter on the coverage group should not be less than the lead time of the items assigned to the coverage group.

    Positive days parameter on the coverage group should not be 0 or empty.

    To eliminate BOM Level as an issue =, run the Recalculate BOM levels batch.' Inventory management>Periodic>Bills of materials>Recalculate BOM levels".

    What does your mrp history say?

    Are you running across more than one AOS (possibly rp lpps between both).  - if so then try it on just one. If on one then try it on more which usually would be faster. Don't run mrp with other users in the system..

    Master planning”–>”Setup”–>”Plans”–>”Master plans.”  After you select the plan you’re interested in, click the “History” button up in the ribbon bar.

    If you see a record with a log, then click the “Log” button in the ribbon bar and look at the Infolog that was generated.  Things like missing BOM versions or capacity scheduling errors will show in here.

    Also look in the mrp “Session logs”. Select the plan for which you need the information, then click on Session log at top of form.

    MRP session log -see the ReqLog in the AOT. On the Periodic sub-menu, where you setup for scheduling the batch process, is check box to 'Track item progress duration".  The last date and time will also show on the batch that runs MRP when you have the batch set to save history :

    Look in  Sys Admin>Inquiries>Batch jobs. Open the batch you are wanting information on and click Batch job history at top of screen to see what it tells you.

    For Master planning runs that never completed, or were aborted, or that are still in process, this form can be used. It can help analyze and troubleshoot performance problems. Master Planning > Inquiries > Processes > Unfinished Scheduling Processes. The Progress field shows two numbers. The first shows the number of items that were processed or that are being processed for the current item level. The second number indicates the total number of items that are on that level.

    Good luck - I'm now going on  holiday!

    .

  • Francesco Profile Picture
    Francesco 522 on at
    RE: Master Scheduling Takes 24 hours

    Hi Bintnag,

    Quite often (not always!) these ridiculous performance jams are caused by bad query plans. What you could try is flushing your stored procedure cache before running the Master scheduling. It's a fairly harmless experiment that will tell you right away if this is indeed the problem.

    I assume performance has not always been this bad. Did you recently activate another legal entity (or did work in another company increase/decrease)?

  • Bintang Profile Picture
    Bintang 563 on at
    RE: Master Scheduling Takes 24 hours

    Hi Dr. Ludwig Reinhard good morning ,

    It's Microsoft Dynamic AX 2012 R, before R2

    pastedimage1566453364537v3.png

    Here it is sir

    pastedimage1566453218844v1.png

    pastedimage1566453248956v2.png

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Master Scheduling Takes 24 hours

    Good Morning Bintang,

    Can you let us know your exact AX version? Is this R2 or R3?

    Can you also share with us some screenprints that illustrate the parameter configurations made?

    Many thanks and best regards,

    Ludwig

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans