Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Error when run MRP for more than 100 item Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: Not enough storage is available to complete this operation

Posted on by 42

Hi Team,

Hope you doing well.

we here we have a problem in running MRP. Now we have around 2,500 Items in the AX that the MRP should be run for them and calculate the planned orders based on the Item coverage and demand forecast setup. At the time of running MRP for whole Items, we will get a CLR error exception in the Class “ReqCalc”, method
“covCalcItem()”, line number  114, for around 1,500 Items. This is the text example of this error:

 

Info        Master scheduling\Item number: 6260008900236\Dimension No.: IDIM000000071               System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: Not enough storage is available to complete this operation

   at System.Diagnostics.Eventing.EventProvider.EtwRegister()

   at System.Diagnostics.Eventing.EventProvider..ctor(Guid providerGuid)

   at Microsoft.Dynamics.Tracing.Microsoft_DynamicsAX_Tracing..ctor()

   at Microsoft.Dynamics.AX.Planning.JobScheduling.JobSchedulingEngineInteropFactory.SetupLogger(ConfigurationService configuration)

   --- End of inner exception stack trace ---

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

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

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

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

Warning               Master scheduling\Item number: 6260008900236\Dimension No.: IDIM000000071                Coverage planning of item 6260008900236 has been canceled.

 

The point is that when we run MRP for just one Item from the error list, we will not face any error. So, we have tried to run MRP for small Item groups, gradually. We have divided Items to five groups with a different number of members, and run MRP for each group separately. But again we face the same error for groups with more than 100 members.

Here you can see the MRP setup in the below screenshots. Also, please note that now we have seven different Coverage groups that five of them are manual, and for the remain two Coverage group, the setup is same

5857.1.jpg

12032.2.jpg

1512.3.jpg

4857.4.jpg

2474.5.jpg

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans