Hi experts,
I am trying to create a .txt file from Dynamics ax table using batch class and save it in a FTP.It works fine for limited number of records but when my records are 300000 or something it throws Insufficient memory to run script error.

When i debugged error comes in following line,
bytes = utf8.GetBytes (Class::getText() );
getText() is where i am writing select statement for selecting all the records from my table.
How can i solve this issue.
*This post is locked for comments
I have the same question (0)