Hi everyone,
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?
Comments
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....
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.
http://mibuso.com/blogs/davidmachanick/
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.
That's gonna be a lot of work.
Tino Ruijs
Microsoft Dynamics NAV specialist
Before creating a new report, try to apply this workaround
Thanks for the tip!
Tino Ruijs
Microsoft Dynamics NAV specialist
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 specialist