Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

"There is insufficient memory to execute this function. This can be caused by recursive function calls. Contact your system administrator" error message when the Microsoft Dynamics NAV server is running web services

Posted on by Microsoft Employee

Why I am getting this error when I apply onmodify trigger on a table

"There is insufficient memory to execute this function. This can be caused by recursive function calls. Contact your system administrator" error message when the Microsoft Dynamics NAV server is running web services

  • keoma Profile Picture
    keoma 32,675 on at
    RE: "There is insufficient memory to execute this function. This can be caused by recursive function calls. Contact your system administrator" error message when the Microsoft Dynamics NAV server is running web services

    please set the answer(s), which you found helpful, to verified. thx.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: "There is insufficient memory to execute this function. This can be caused by recursive function calls. Contact your system administrator" error message when the Microsoft Dynamics NAV server is running web services

    Hello,

    You first need to know where and when this does happen. Technical explanation is like this:

    |

    Whenever you call a function, the point in the program where the system has to jump back to is put on a stack. So with each call to any function you increase the number of pointers in that stack.

    At one point, the size of the stack is exceeded when too many functions are called.

    Your partner or yourself needs to debug to see where this does happen in code and then you may be able to try to resolve it. First step that we ask in Microsoft support is if you can reproduce this in standard CRONUS company.

    In earlies releases of Dynamics NAV, some Microsoft fixes did also help here but we do not know what cumulative update you are running in what release. You may want to post that as well to the community forum.

    Thanks.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "There is insufficient memory to execute this function. This can be caused by recursive function calls. Contact your system administrator" error message when the Microsoft Dynamics NAV server is running web services

    How I can then modify my codeunit code? Can you assist me? How I can stop endless loop in this case.

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: "There is insufficient memory to execute this function. This can be caused by recursive function calls. Contact your system administrator" error message when the Microsoft Dynamics NAV server is running web services

    because of the endless loop.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans