Skip to main content
Answer

Error: Insufficient stack to continue executing the program safely, what could be the fix?

  • May 17, 2025
  • 4 replies
  • 205 views

Hello Everyone 🤗,

 

Happy Friday! and hope all is well. I am trying to approve a time off request but I see the Insufficient stack error: 

 

I also see it when I try to enter my time in the Activities tab for a project.

 

This occurred after we upgraded to 2024 R2. I tried to reset the caches and restart the website but nothing, what could resolve this error?.

 

Thank you again

Best answer by DipakNilkanth

Hi ​@GwenEkamba,

Basically, these issues are happening due to incorrect handling of certain scenarios in your code logic. You’ll need to debug and identify where exactly the issue is occurring.

If you share your logic, someone might be able to help you identify the loophole in your code that’s causing the problem.

4 replies

DipakNilkanth
Pro III
Forum|alt.badge.img+13

Hi ​@GwenEkamba,

Is there any customization published on those screens?

If yes, the issue could be caused by your custom code being triggered repeatedly, potentially leading to an infinite loop. I recommend reviewing your customization logic first to ensure it's not causing the problem.


  • Author
  • Freshman I
  • May 19, 2025

Hi ​@Nilkanth Dipak,

Yes there are three customizations published on the VR201000 screen, one was active and two were inactive (I deleted the inactive one so there are actually 2, one active and the other inactive). I tried to re-arrange the level of the active customization but I still see the error and I added the Vacation field in the custom code (the bin file) but I still see the error. This error occurs as well when the Vacation earning type is selected.

 

I am not sure if maybe I need to re-arrange the customization for the Employee Time Cards screen, since once the Vacation is approved it enters a Vacation entry into the employee time card 

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 3, 2025

Hi ​@GwenEkamba were you able to find a solution? Thank you!


DipakNilkanth
Pro III
Forum|alt.badge.img+13

Hi ​@GwenEkamba,

Basically, these issues are happening due to incorrect handling of certain scenarios in your code logic. You’ll need to debug and identify where exactly the issue is occurring.

If you share your logic, someone might be able to help you identify the loophole in your code that’s causing the problem.