Insufficient memory - recursive function

Bokk
Member Posts: 138
We have a client running Nav 3.10A. They were trying to run the "Calculate Low-Level Code" function under Periodic Activities in Manufacturing. It stops on the same item each time (at about 18% complete) and the error says: "There is insufficient memory (stack) to execute this function. This can be due to the way that recursive function calls are used in the program." It appears to be a system message, not one set in code.
It uses codeunit 99000853 which has no customizations in it. There is a function which calls itself and also has a REPEAT loop. I believe it may be having the error because it is exceeding 50 levels - I need to check into this specifically for this item. (At a glance it didn't seem to exceed the max number of levels.) It seems likely to me that it could be data related as this would be a common function that would affect everyone and we haven't changed anything in it. If so, would it affect too many other functions to change the max number of levels to 60 or some other number?
Any insight would be appreciated.
Thanks!
It uses codeunit 99000853 which has no customizations in it. There is a function which calls itself and also has a REPEAT loop. I believe it may be having the error because it is exceeding 50 levels - I need to check into this specifically for this item. (At a glance it didn't seem to exceed the max number of levels.) It seems likely to me that it could be data related as this would be a common function that would affect everyone and we haven't changed anything in it. If so, would it affect too many other functions to change the max number of levels to 60 or some other number?
Any insight would be appreciated.
Thanks!
SGM
0
Comments
-
I see this message when I try to Optimize my G\L Entry Table with the database used @ 85%. If I expand the database until the available is <80 it Optimizes without the message.
So in my case it's due to free database space.
Note - the G\L Entry table is our largest.0 -
Hi,
perhaps you have a recursion in your Production BOMs?
can you locate the item where the system stops?
check it's Production BOM.
br
Josef Metzbr
Josef Metz0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions