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

Announcements

No record found.

News and Announcements icon
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

  • 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 748 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 351 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans