Hi guys,
Today I tried the to upgrade a quite simple report from NAV 2009 R2 to NAV 2013.
The report structure is:
Customer (printonlyifdetail = yes)
-Sales Invoice Header
--Sales Invoice Line
-Sales Cr.Memo Header
--Sales Cr.Memo Line
The aim is to print all the customers that have at least a Cr.Memo or an Invoice with all the documents.
The report is designed in this way:
1 list grouped on Customer.No field that contains 2 tables. the first table has a group based on "Sales Invoice Header".No field.
For the second table it's the same but the group is based on the "Sales Cr.Memo Header".No Field.
This report works like a charm in NAV 2009 R2.
Now it's time for upgrade...
1. I export the object as .fob
2. Import the object in NAV 2013 Standard DB (localized Italy)
3. Selecting my report I press Tools>Upgrade Reports
I run report in NAV 2013 RTC and it seems to work. My problem is that if I try to see which are the group properties on List and Tables craeted in the VS2010 layout I receive an error (always the same):
_______________________________
Microsoft Report Designer
_______________________________
Undocumented Error.
Details:
Object reference not set to an instance of an object.
Does anyone of you know what I'm doing wrong?
Thank you very much.
Answers
But maybe you could share your report.rdlc and dataset.xml as I described here:
http://mibuso.com/blogs/clausl/2012/06/24/offline-preview-and-debug-reports-in-microsoft-dynamics-nav-2013/
Then I could have a look at it.
/Claus Lundstrøm
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)
Anyway I'm going to send you a PM with files you asked me.
I had to change extension to Report file from .rdlc to .txt because I wasn't able to attach it to a PM.
I continue to investigate the reason of this issue.
Thank you for the help.
It works as expected... More or Less...
As you said Claus, the problem is due to filters.
Developing NAV 2009 R2 report I was able to set filters on groups, tables and list with the following syntax: If you upgrade a report with filters set as above it will work; but you aren't able to see Tablix properties because the error mentioned in this topic will appear.
What I did to avoid this error is to use the follwoing syntax:
Thank you Claus for helping me.
It works as expected... More or Less...
This is absolutely something we need to pay attention to when upgrading reports from NAV 2009.
/Claus Lundstrøm
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)