Share via

D365 Finance - High Memory Usage on AOS server When Posting Free Text Invoices in Batch (increasing until failure)

Sonja Johansson 0 Reputation points
2026-03-12T13:07:25.5566667+00:00

Posting of free text invoices in a batch job consumes is consuming memory on the AOS server until memory runs out and batch job fails. This occurs when running the process of posting free text invoices from the form 'Post free text invoice' as a batch job, using the class CustPostInvoiceJob This is tested in onPremise environment when monitoring AOS server and also confirmed in cloud. The problem started after installing 10.0.46 release

[Moderator note: personal info removed]

[Moderator note: personal info removed]

[Moderator note: personal info removed]

Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Steven-N 21,805 Reputation points Microsoft External Staff Moderator
    2026-03-12T13:57:58.37+00:00

    Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.

    Hi Sonja Johansson

    Thank you for reaching out to Microsoft Q&A forum

    Please understand that  Microsoft Dynamics 365 is currently not supported on this Microsoft Q&A forum. So, I suggest you start a new discussion in the Find Answers | Microsoft Dynamics 365 Community on this issue so that you can get more professional help, there will be very professional people who might be able to provide more detailed guidance or share best practices for handling this type of data transfer.  

    Hope you can get the definitive solution for this concern soon

    Best regards


    Note: Follow the steps in [our documentation] to enable email notifications if you would like to receive the related notification for this discussion.

    0 comments No comments

  2. Sonja Johansson 0 Reputation points
    2026-03-12T13:08:58.0633333+00:00

    This is for Dynamics 365 FO

    0 comments No comments

  3. Q&A Assist
    2026-03-12T13:07:45.46+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The described behavior matches a product issue pattern seen in other Dynamics AX/Finance scenarios where batch posting or reporting operations cause excessive resource consumption (CPU/memory) on AOS and eventually fail. In the provided context, similar issues are documented for:

    • AOS crashes when many batch IL threads are run on high‑core machines in Microsoft Dynamics AX 2012.
    • Performance issues when printing large volumes of customer account statements in Microsoft Dynamics AX 2012 R2.
    • Slow performance when posting large general journal batches in Microsoft Dynamics NAV 2013.

    In all these cases, Microsoft has confirmed them as product issues and addressed them via hotfixes or cumulative updates.

    Given that the high memory usage and failure started specifically after installing version 10.0.46 and is reproducible both on‑premises and in cloud, the supported next steps based on the pattern in the context are:

    1. Treat this as a likely regression/defect introduced in 10.0.46 affecting batch posting of free text invoices via CustPostInvoiceJob.
    2. Open a support case with Microsoft (through the standard Dynamics 365 Finance support channel) and provide:
      • Exact application/platform build including 10.0.46 details.
      • Repro steps (Post free text invoice form → batch job using CustPostInvoiceJob).
      • Environment type (on‑prem and cloud) and AOS topology.
      • Memory usage traces and any crash dumps from the AOS server.
    3. Request confirmation whether this is a known issue in 10.0.46 and whether a hotfix or later build (PU) is available that resolves the memory leak/high memory consumption during free text invoice batch posting.
    4. Until a fix is available, consider operational mitigations similar to those used in other Dynamics performance issues:
      • Reduce the batch size/number of invoices per run.
      • Schedule more frequent, smaller batch jobs instead of large single runs.
      • Limit parallelism (number of batch threads) for this job to reduce peak memory pressure.

    These steps align with how Microsoft has handled comparable AOS/batch performance and resource‑consumption issues in the referenced Dynamics articles.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.