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)

Error message: "there is not enough memory to complete this operation" when importing Planned orders

(0) ShareShare
ReportReport
Posted on by 20

Hi all,

I created Planned orders through the add-on functionality by importing Excel file. (I mean "bulk import".)

However, when importing more than 500 records, the error below was occurred.

"Error message: "there is not enough memory to complete this operation"."

Does anyone have any solutions?

* Error detail is below. (Sorry, there are some Japanese...)

「System.Reflection.TargetInvocationException: throw exception
 ---> System.ComponentModel.Win32Exception: there is not enough memory to complete this operation

   Place: System.Diagnostics.Eventing.EventProvider..ctor(Guid providerGuid)

   Place: Microsoft.Dynamics.Tracing.Microsoft_DynamicsAX_Tracing..ctor()

   Place:
Microsoft.Dynamics.AX.Planning.JobScheduling.JobSchedulingEngineInteropFactory.S
etupLogger(ConfigurationService configuration)

   Place:
Microsoft.Dynamics.AX.Planning.JobScheduling.JobSchedulingEngineInteropFactory.E
nsureLoggerSink()

   --- 内部例外スタック トレースの終わり ---

   Place: System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   Place: System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   Place: System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   Place: Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.InvokeClrStaticMethod
(ClrBridgeImpl* , Char* pszClassName, Char* pszMethodName, Char* assemblyName,
Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean*
isException)」

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Yuka,

    Did you start monitoring on your machines to find out if there is short on system resources? What add-on are you referring to? Or just the Excel add-in?

  • Yuka Furumoto Profile Picture
    20 on at

    Hi Andre,

    Thank you for your kind reply!

    I  monitored on my machine and I found out that AOS server memory was rapidly consumed to close to 800M and occured that error(failed to import the Excel file of Planned orders).

    I mean that it's not Excel add-in, it's the customized functionality(created by X++) for  creating multiple Planned orders at once.

    Do you have any other ideas?

    Best regards,

    Yuka

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

    Hi Yuka,

    If memory usage is growing rapidly, there should be something within the coding or the kernel. In one of the first versions of AX 2012 there was a memory leak which also caused issues. What exact version of AX2012 are you using?

  • Yuka Furumoto Profile Picture
    20 on at

    Dear Crispin

    My code is run in AOS.

    Best regards,

    Yuka

  • Yuka Furumoto Profile Picture
    20 on at

    Hi Andre,

    Do you mean it might be issues of Dynamics AX original?

    I'm using AX2012 R3 CU12.

    So isn't it possible to be occurred memory leak for this version?

    Please let me know the details.

    Best regards,

    Yuka

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

    Hi Yuka,

    I'm also interested in the details of the coding. The version you are using is quite recent, so the old issue is not in it. Of course, there can be new or other issues in a kernel, but not that I'm aware of.

  • Yuka Furumoto Profile Picture
    20 on at

    Dear Cristpin and Andre

    Thank you for your cooperation!

    My code is below. (Just "while select" part)

    Please let me know if you have any advice!

    *Notice: "AXW_ReqPO" is an add-on table. ( I mean it's not AX original table.)

    -------------------------------------------------------------------------

       while select

           forUpdate

           AXW_ReqPO

           order by AXW_ReqPO.createdDateTime

           where AXW_ReqPO.ProcessUserId  == _prmProcessUserId

    -------------------------------------------------------------------------

    Best regards,

    Yuka

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