Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

System.OutOfMemoryException: Array dimensions exceeded supported range.

$
0
0

I have a service which recursively creates a large array of objects. When i run this code in client, it works fine, but when i pass it off to the aos to execute as a batch using sysop framework i get this error

System.OutOfMemoryException: Array dimensions exceeded supported range.at System.Collections.Generic.List`1.set_Capacity(Int32 value) at System.Collections.Generic.List`1.EnsureCapacity(Int32 min) at System.Collections.Generic.List`1.Add(T item) 

at Microsoft.Dynamics.Ax.Xpp.Array.arrayValue(Int32 _index, Object _arg, Boolean isDefaultParam)

i have seen other examples of this in other .net languages. they say that you have to add a block to the app.config file to allow large arrays like this:

<configuration>
  <runtime>
    <gcAllowVeryLargeObjects enabled="true" />
  </runtime>
</configuration>

but since i dont have access to ax's app.config, what can i do? this cannot be addressed another way.


Viewing all articles
Browse latest Browse all 175888

Trending Articles