Year end processing

ryanch
Member Posts: 34
One of our companies hangs each time we try to run the year-end batch. The other companies (within the same database) succeeded. Please help.
0
Comments
-
That's pretty vague, we'll need so more information first.
At a minimum please provide:
1. Version of Navision
2. Size of the database -- cache properties
3. Modifications done?
4. Access to a developers license?
5. How does it hang? What does Task Manager say about usage?
Can anyone think of anything else?0 -
Hi,
You should make debugger active. (Tools -> Debbuger -> Active) and than Navision will stop on the error place. Then try to understand where is the problem.Andrejs Muraskins0 -
andrejm, The ryanch says that it hangs. So he won't see any error.
I guess he could follow your advice and turn on both options of debugger active and stop on trigger and hit F5 and see if he can find an infintely loop or the last place before it hangs.0 -
ara3n wrote:andrejm, The ryanch says that it hangs. So he won't see any error.
I guess he could follow your advice and turn on both options of debugger active and stop on trigger and hit F5 and see if he can find an infintely loop or the last place before it hangs.
If Navision goes into a infinite loop, it would pop out a memory error.
It may be just a long process? Ryanch, have you try to let it "hang" for longer period of time?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
deadlizard wrote:If Navision goes into a infinite loop, it would pop out a memory error.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:deadlizard wrote:If Navision goes into a infinite loop, it would pop out a memory error.
Isn't that what I said? :?:Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
No dead lizard, its not the same.
An endless recursion is when you have two functions calling each other. This causes a memory error because each functions local variables/parameters have to allocate memory on the call stack, eventually causing the problem.
An infinite loop is a loop that never terminates for example:while TRUE do begin end ;
There isn't any mem allocation in that example, so there isn't ever a problem0 -
ryanch -- do you still have the issue?0
-
girish.joshi wrote:No dead lizard, its not the same.
An endless recursion is when you have two functions calling each other. This causes a memory error because each functions local variables/parameters have to allocate memory on the call stack, eventually causing the problem.
An infinite loop is a loop that never terminates for example:while TRUE do begin end ;
Hmm.. but if in the repeat or while do loop, do you do some processing, wouldn't you get a memory error? :-kConfessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Probably not. Just processing doesn't cause a memory error, memory has to be allocated.
When I think about it, there are some diabolical ways you could make it happen, but you would have to be delibrately trying to cause the memory error.
I can't think of anything standard that would cause it, even in the while true structure.0 -
girish.joshi wrote:When I think about it, there are some diabolical ways you could make it happen, but you would have to be delibrately trying to cause the memory error.
WHILE TRUE DO BEGIN tmpGLEntry."Entry No." +=1; tmpGLEntry.INSERT(FALSE); END;
This is an endless loop that will give some memory error.
endless recursion 1:FUNCTION XYZ BEGIN FUNCTION XYZ(); ... .... END;
And now you just have to call xyz...
endless recursion 2:FUNCTION XYZ BEGIN FUNCTION ABC(); ... .... END;
FUNCTION ABC BEGIN FUNCTION XYZ(); ... .... END;
And now you just have to call xyz or abc...Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Yes, that's true the endless loop will give a memory error -- you have to watch out for overflows.
But again, you can avoid doing things like that in your endless loops, and therefore avoid the memory error.
You CANT avoid a memory error with a circular reference in functions. This is because there is a small memory overhead with every function call... even without parameters, local variables, etc.0 -
The problem was that we were checking multiple dimensions to close with and this would result in too many closing entries per G/L account hence the time spent per account. Actually the system was working in the background. The longest time we left it to run was overnight and this didnt make sense to us. Anyway thanx guys for your brilliant ideas.0
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