web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Limit for batch jobs running in batch group

(0) ShareShare
ReportReport
Posted on by 536

Hi,

If let's say I have 3 recurring jobs that run each 1 min

Which means each 1 min, 3 records in batch job form are going to be created

My first question is: 

If one of the recurring jobs exported more than 2000 records, is it still going to create only 1 record in batch job ? I mean is there a limitation on how many lines the entity can export in 1 batch job?

Now, we said we have 3 recurring jobs and all those are connected to the empty batch group. And let's say, I have another button where each time it's clicked, an entity gets exported in batch -- which means also a record gets created in batch job form. And also batch group here is empty.

My second question is:

If 3 recurring batch job records got created at the same time in addition to other 10 records from the button -- which is in total 13 records in batch job form created at the same time with the same empty batch group. Is there a limitation on how many jobs can be executed for the empty batch group at the same time? Or would there be a limit like only 10 jobs for example can be run together..so the other three need to wait until one of the 10 jobs finishes so that one of the three can start executing?

I have the same question (0)
  • DELDYN Profile Picture
    536 on at

    Any idea anyone?

  • AstridMalanka Profile Picture
    8 on at

    I think you can have 8 jobs running parallel

  • André Arnaud de Calavon Profile Picture
    304,072 Super User 2026 Season 1 on at

    Hi Deldyn,

    On the server configuration form, you can view and set the maximum number of batch threads per AOS instance. Note that you will get a warning when you set a value of 16 or higher. In a production environment you have at least two AOS instances. It might be more depending on the sizing. If you sum the maximum batch threads, that is the maximum load the batch server will execute in parallel. If there are more batches to process, they will be postponed until a thread is free for execution.

  • DELDYN Profile Picture
    536 on at

    Hi Andre,

    I asked 2 questions in the description, can you please confirm the answer

    Now regarding ur comment:

    I checked production server configuration form and i can see that there are 12 batch servers

    Each one has max concurrent session as 2000 and maximum batch threads = 12

    Does that mean i can have 12*12 batch records in batch job form that can run at the same time? Regardless of batch group?

  • André Arnaud de Calavon Profile Picture
    304,072 Super User 2026 Season 1 on at

    Hi Deldyn,

    12 * 12 would be 144 threads. Note that some batch jobs, like the workflow message processing job can create multiple tasks. This will be bundled by 100 workflow messages. Each task will consume a thread. This is all regardless of the batch group. I do hope this answers your second question.

    Can you elaborate on your first question? Are you using the standard Data Import/Export features or a custom export job?

  • DELDYN Profile Picture
    536 on at

    Hi Andre,

    So if total is 144 and let's say i have one  batch job with 44 tasks. In addition to 200 batch jobs with 1 task each.

    Then this means that the one batch job with 44 tasks will run in addition to 100 jobs at the same time right?

    Now for the other 100, it's going to wait until "one of the 100 jobs or 1 job with 44 tasks" finish to be able to add one from the waiting 100.

    Is that right? Is this what you meant?

    Regarding my 1st question, I'm talking about recurring job which is standard...the question was, if one of the the recurring jobs in the queue is exporting more 20,000 record. This will still execute only 1 batch job for the first recurrence right? I mean number of exported lines in each batch is not limited and there is no max limit?

  • André Arnaud de Calavon Profile Picture
    304,072 Super User 2026 Season 1 on at

    Hi Deldyn,

    Your understanding about the batch queue is correct.

    About the first question, data managent export is taking the 20,000 records in one batch thread. Only when importing data, there is an option for execution parameters to split the work.

  • DELDYN Profile Picture
    536 on at

    Hi Andre,

    I have three questions please:

    So even for import there is no limit unless we specify to split them to more than one job Right? And where can i find this execution parameter?

    Also regarding the workflow job that u said has 100 task..is this found in every production environment? And how many times does it run? Is it recurring?

    Now the reason i'm asking all those questions is to try and understand an issue i'm facing

    Currently, when a button is clicked to post let's say for example a journal. I have a sysOperationFramework service with reliable async execution mode, that exports a composite entity, inserts in custom table that works as change tracking and sends the exported file to azure blob(in addition to few logic)

    This is done so that files reach customer in real time. And this is working quickly in my dev box taking between 10 -15 seconds.

    Now in prod, we are having a performance issue where people are saying that it takes more than one minute for the file to reach the customer.

    I've looked at few examples and indeed i can see that the difference between the modifiedDateTime for the posting of the journal And the createdDateTime for inserting in my custom table which is done inside the batch after the posting, is sometimes more than 2 minutes!! And there are cases where it's quick.

    And that made me wonder if batch jobs limit has something to do with it. Any idea? And what should i do in thus case?

    Please note that there is also recurring job that works each min for the same composite entity.

    So what happens is, in general, when the journal gets posted, the sysOperationFramework service inserts a record in the custom table and based on some logic, it detects if this journal should be sent real time or batch. If it was real time, it will export the entity now and send to azure blob. If not, it will wait for recurring job to pick it up (where recurring job is running every 1 min)

    (there is a filter on the recurring data project and the real time date project based on status so that one exports real time records and the other one exports batch records)

  • André Arnaud de Calavon Profile Picture
    304,072 Super User 2026 Season 1 on at

    Hi Deldyn,

    I wrote a blog about the execution parameters in the past: Speed up data import with (data) entity execution parameters (dynamicspedia.com)

    The workflow processing job was an example to mention that there can be more than one thread used for a batch job. Also when you are using the execution parameters and split the import in bundles it will use multiple tasks. 

    For your issue, can you tell if you are using the batch framework or directly the sysOperationFramework?

  • DELDYN Profile Picture
    536 on at

    Hi Andre,

    I'm not sure what do you mean by batch framework or sysOperationFramework directly?

    I've mentioned in the previous comment that i'm using sysOperationFramework, in the posting method of the journal, i call a controller class where inside it i define a service class with execution mode is reliable async.

    There is no dialog, it gets called in the posting method with reliable async so that the posting of the journal doesn't wait for the service logic.

    Does this answer ur question?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 738

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 453 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 286 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans