How to debug an 'object reference not set to an instance of an object' ?


So I have this report and it runs per date. It works fine for 4 Jan and 6 Jan but not for 5 Jan. So obviously there is some kind of a data issue. The problem is finding out what. If I preview the report, I get the above error, no indication of where.

The report consists of 4 pages coming from 2 datasets. Both datasets have data (rows) so the obvious answer is not that.

How do I figure out what the object is which is complaining ?


  • take a good look at report script, try catch will help you

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.