Insufficient memory while running adjust cost bacth job

pradkpradk Member Posts: 89
While running Adjust cost batch job i get the following error message

There is insuffient memory(stack) to execute this function
This can be due to the way that recursive function calls are used in the program. Contact your system manager if you need assistance.


Any ideas ?? ](*,)

Comments

  • kinekine Member Posts: 12,562
    It seems like some sort of never-ending nested loop. Which version of application you are using (not version fo client but version of objects)?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • pradkpradk Member Posts: 89
    The client is using 4.0 sp1 but he has been running this application for the last 2 years and has run the adjust cost a month back. It has been running fine till now.
    I have already checked for the Items and there are total 3 items and that too are not BOM type.

    I have checked for the space and expanded the database but still the problem persists.

    Currently am trying to run the same batch job on a local machine that too non SQL database.

    What should i do now ?
  • kinekine Member Posts: 12,562
    Watch the process and look if it is looping in some way. You can try to use debugger to catch where the problem raise...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • pradkpradk Member Posts: 89
    Already tried debugging option(not the line by line cuz this error message come's up after 45 minutes). It stops suddenly with this error message.
  • pradkpradk Member Posts: 89
    Do you think changing object cache will make any difference ?
  • KYDutchieKYDutchie Member Posts: 345
    Hi,

    we had the same error and we found an blank Item in the Item table.
    We removed that blank item and it did not occur again.

    Apparently when a blank item is in the item table, the adjust cost process can go into a never ending loop.

    Hope this helps.

    Regards,

    Willy
    Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
  • pradkpradk Member Posts: 89
    sorry boss ! not the case of blank item no.
    There was one blank item which i deleted, still the problem persists.

    any more ideas ???
  • ara3nara3n Member Posts: 9,256
    Filter on items. Use the following thread on how to.
    http://www.mibuso.com/forum/viewtopic.p ... highlight=
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • pradkpradk Member Posts: 89
    ara3n wrote:
    Filter on items. Use the following thread on how to.
    http://www.mibuso.com/forum/viewtopic.p ... highlight=

    Hi !
    how is filtering of items related to the insufficient memory eror message.
    Sorry ! but can you please explain me.

    The error message comes up on a particular entry no. for an item, when i looked at the item ledger entry this entry had remaining qty as zero and there were quite a few entries applied against it, whereas when i checked in the item application entry table i found that there was no outbound entry for this entry no.



    thanks
  • ara3nara3n Member Posts: 9,256
    ok so If you know the item, you can filter it out and run adjust cost. This will help you finding out what causes it.

    As Kine mentioned you are running into an infinte loop. I suggest to look at partner source for fixes related to this.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.