Error System.OutOfMemoryException when running a 2013 report

poppins
Member Posts: 647
Hi everyone,
I am trying to run a nav 2013 report and getting the following error:
The stange thing is that for the date filter, the report sometimes generates correctly, sometimes throws this error but displays only a part of the data supposed to be rendered, and sometimes throws the eroor with no data displayed at all...
What shall I do?
I am trying to run a nav 2013 report and getting the following error:
An error occured during local report processing. An error has occured during report processing. Exception of type 'System.OutOfMemoryException' was thrown.
The stange thing is that for the date filter, the report sometimes generates correctly, sometimes throws this error but displays only a part of the data supposed to be rendered, and sometimes throws the eroor with no data displayed at all...
What shall I do?
0
Comments
-
Does your report include any images? Sometimes clients like to use header/company logo images or footer addresses that are in image format.
Occasionally these items can be very large (several megabytes - sometimes 10 or more) and when NAV does the server side processing, depending on how the data relations have been designed, it can attempt to build a huge XML dataset and repeat the image many times. This can sometimes lead to the report dataset being bigger than the available memory on the client - so when NAV sends it across, your client machine can't handle it (after the data fetch the report processing actually happens on the client)
If so you might want to try and run the report with a small number of rows (a small date filter) and then use the "About this report" feature. If there is an image column it will be displayed as a * (binary data). The solution to this issue is to ensure that the image only appears in a single data item (add another data item to the root). I think doing a CLEAR on the image variable after the first fetch might also work - but can't confirmCharleh0 -
Charleh wrote:Does your report include any images? Sometimes clients like to use header/company logo images or footer addresses that are in image format.
Occasionally these items can be very large (several megabytes - sometimes 10 or more) and when NAV does the server side processing, depending on how the data relations have been designed, it can attempt to build a huge XML dataset and repeat the image many times. This can sometimes lead to the report dataset being bigger than the available memory on the client - so when NAV sends it across, your client machine can't handle it (after the data fetch the report processing actually happens on the client)
If so you might want to try and run the report with a small number of rows (a small date filter) and then use the "About this report" feature. If there is an image column it will be displayed as a * (binary data). The solution to this issue is to ensure that the image only appears in a single data item (add another data item to the root). I think doing a CLEAR on the image variable after the first fetch might also work - but can't confirm
Thank you for your effort, but no image at all....0 -
You don't mention the specific report.
The inventory revaluation report can fail with this message because it can send a massive amount of data to the report layer. The fix for this type of problem is to either redo the report in SQL to make it more efficient, or add code to the report to cut down the data sent to the RDLC and make any changes needed in Visual Studio to the report.David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
Yes good point, inventory valuation report has Item -> Value Entry data set. To be honest you can quite easily change the report to do the processing it needs in the first data item ("Item") and summarise the value entries as variables (the report itself never uses the value entry data other than to provide a summary but NAV sends all value entries across as part of the data set!)
In a scenario with 8,000 items with 100 value entries each you are looking at 800,000 rows
If you customise to ensure that processing is done at the Item level, you will have at most 8000 summarised rows.Charleh0 -
I'm getting the same message on the report 204 Sales Quote. Too big dataset. Sales quote report at customer site is 6 to 8 pages long normally. So probably creating report from scratch is best now.
That's gonna be a lot of work.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
tinoruijs wrote:I'm getting the same message on the report 204 Sales Quote. Too big dataset. Sales quote report at customer site is 6 to 8 pages long normally. So probably creating report from scratch is best now.
That's gonna be a lot of work.
Before creating a new report, try to apply this workaround* Daniele Rebussi * | * Rebu NAV Diary *0 -
geordie wrote:tinoruijs wrote:I'm getting the same message on the report 204 Sales Quote. Too big dataset. Sales quote report at customer site is 6 to 8 pages long normally. So probably creating report from scratch is best now.
That's gonna be a lot of work.
Before creating a new report, try to apply this workaround
Thanks for the tip!
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
geordie wrote:tinoruijs wrote:I'm getting the same message on the report 204 Sales Quote. Too big dataset. Sales quote report at customer site is 6 to 8 pages long normally. So probably creating report from scratch is best now.
That's gonna be a lot of work.
Before creating a new report, try to apply this workaround
I haven't succeeded yet in correct applying the workaround, but disabling "Logo position on documents" in the Sales & Receivables Setup, decreased the size of my dataset.xml.
It went from 150662 kb to 304 kb.
So I'm gonna make that workaround work. ;-)
Thanks!
Tino Ruijs
Microsoft Dynamics NAV specialist0
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