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)

Is it possible to speed up batch job

(0) ShareShare
ReportReport
Posted on by

 Hi

We are using workflow in AX 2012R2 for handling invoice in Invoice processing. The workflow is trigged by batch job which is set up. The minimum recurring pattern is 1 Minute. We think this si to slow and it seems like this make the Invoice processing job ineffective. We have tried setting up 5  batch jobs with different starting time to see if that helps. But seems it doesn't give effect. Do you know if its possible to speed up process?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    It is possible via customizing the batch framework and recurrence settings, see a similar question here:

    community.dynamics.com/.../216799

  • André Arnaud de Calavon Profile Picture
    300,904 Super User 2025 Season 2 on at

    Hi KWA,

    Can you tell what exactly you mean with speed up?

    Do you want to submit a workflow and have it directly at the plate of a manager to approve?

    Or are there some long running workflows? E.g. the configuration is very large which several conditions and automated tasks?

    At a certain customer I have seen workflow processing running 40-60 seconds per instance. This was way too much and caused sometimes hours delay in processing. Adding more batch jobs did speed up this specific issue.

    Please tell your definition of "speed up".

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    He means having a smaller batch execution schedule than 1 minute. And yes, it is possible, we have 1 second.

    Try editing BatchRun.serverGetTask to fire BatchRun::serverProcessFinishedJobs(); after servergetonetask near the end, and in serverProcessFinishedJobs edit the addMinutes to addSeconds with -10.

  • André Arnaud de Calavon Profile Picture
    300,904 Super User 2025 Season 2 on at

    @Vilmos: I wonder if you are clear-sighted :). I think you are correct about smaller batch schedule times. I know it is possible to customize the batch framework for this. At one customer we had to customize it as well for very large number of integration messages. I wanted to contribute my experience on complex workflow configurations which might slow down the workflow process as well.

    At the particular customer we created a temporary solution to schedule multiple instances of the workflow batch. This was supposed to run each 20 seconds. In peak times there were over 1000 workflow messages per hour.

    However you also have to look at the batch server settings. How many threads are available. If they are all occupied by other batch tasks, then it will only pick up new workflow messages when threads are available.

    So also a suggestion for KWA is to monitor the batch threads used and available. Otherwise the number of threads should be increased if the hardware resources are sufficient. Another option to increase the number of batch threads is to setup another AOS as batch server.

  • Yasir Shahzad Profile Picture
    1,635 on at

    you can go to AOT...in Forms and then right click on Tuitorial_workFlowProcessor...and then open...now click on Run Button...it will run all job que in Work Flow

  • Community Member Profile Picture
    on at

    Hi thanks for good information. I will consult and do some testing based on this!

  • Community Member Profile Picture
    on at

    For example when Submitting an Invoice in to Workflow it can take 1 minute. before we can start delegating it to approver

  • Community Member Profile Picture
    on at

    Hi, Where can I find BatchRun.serverGetTask ? is it in AOT ? If you can give me specification on where to locate it, I would appreciate !

  • Vilmos Kintera Profile Picture
    46,149 on at

    Please consult with a senior developer at your partner, since this is a very dangerous framework to touch by non-experienced people.

  • Community Member Profile Picture
    on at

    Hi Vilmos,

    Will not do anything before consulting our AX partner. But I would still like to know where to locate it:) Please inform if possible

    Brg

    Kristian

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