Errors that crashed NAV Server

kelseykong@hotmail.com
Member Posts: 86
Dear experts
I searched a lot but was not able to find any post related to the following warning and errors. I would be greatly appreciated if you could point me to the right direction to prevent the same issue from happening again.
The customer is using NAV 2009 R2 RTC.
After user ABC tried to batch post around 300 invoices (which will also send invoices to customers as PDF file, a customized function) several times, the out of memory error is found in the event viewer every time he tried. Please refer to files "Out of memory error 1-3" for error details. Just to let you know that the user was able to batch post invoices and send invoices to customers before without getting the same error message.
After 15 minutes since the last time the above error message is received, a warning is found. Please refer to file "Warning message" for details.
The same warning shows again after 30 minutes. Then an application error is received. Please refer to file "Application Error" for details.
May I know if the "InvalidReportHandleException" warning message is caused by the user who tried to batch post invoices several times? If so, whether increase the memory will resolve the issue?
Thank you!
I searched a lot but was not able to find any post related to the following warning and errors. I would be greatly appreciated if you could point me to the right direction to prevent the same issue from happening again.
The customer is using NAV 2009 R2 RTC.
After user ABC tried to batch post around 300 invoices (which will also send invoices to customers as PDF file, a customized function) several times, the out of memory error is found in the event viewer every time he tried. Please refer to files "Out of memory error 1-3" for error details. Just to let you know that the user was able to batch post invoices and send invoices to customers before without getting the same error message.
After 15 minutes since the last time the above error message is received, a warning is found. Please refer to file "Warning message" for details.
The same warning shows again after 30 minutes. Then an application error is received. Please refer to file "Application Error" for details.
May I know if the "InvalidReportHandleException" warning message is caused by the user who tried to batch post invoices several times? If so, whether increase the memory will resolve the issue?
Thank you!
0
Answers
-
It is probably dying because of printing the report, not because of posting. 2009R2 has a memory limit of 2GB, so you have to be careful when writing reports to limit the amount of memory used.
In a test database, try just doing Post rather than Post+Print and see if that gets a memory error.
You also need to check what build number of NAV you are on. There have been a ton of hotfixes that have been done to 2009R2 that address report issues, but the hard limit of 2GB is still there regardless of the build number.Kyle Hardin - ArcherPoint0 -
Kyle
Thank you very much for your feedback.
The build number is 6.0.38655.0.
When batch posting the invoices, the user did not mark the Print Sales Invoice field.But it does generate PDF invoices and send to customers as an Email attachment. May I know this will have the same effect as printing invoices?
I tested in the test environment and confirmed the memory will increase by 1GB when trying to batch posting 300 invoices. Since I was the only user in the test environment I was not able to replicate the error.
On the other hand, the memory in the server has reached 11 GB out of a total of 12 GB. May I know if the out of memory error is due to the fact that there is no available memory to allocate, or due to the 2GB limitation?
Thank you!0 -
SAVEASPDF didn't exist in 20090R2, so you must have some custom code that prints the PDFs - so yes, that would be a normal report that's simply pointed at a PDF printer rather than a paper printer.
When you say memory in the server reached 11GB out of 12GB, do you mean the SQL server, or do you mean the NAV service tier server?Kyle Hardin - ArcherPoint0 -
SAVEASPDF did exist in 2009R2.
How big are the PDF's you attach?
Do you send the Mails after the posting is done, or while posting ?Austrian NAV/BC Dev0
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