Skip to main content

Notifications

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

  • keoma Profile Picture
    32,725 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
    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
    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
    32,725 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,033 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,854 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans