web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    because of the endless loop.

  • Community Member Profile Picture
    on at

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

  • Suggested answer
    Marco Mels Profile Picture
    on at

    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.

  • keoma Profile Picture
    32,729 on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans