title: SSRS '08 Object reference not set to an instance of an object
body: <p>Full error from Preview window in Visual Studio '08 (BIDS): "An error occurred during local report processing. Object reference not set to an instance of an object."</p>
  
  <p>There are no further errors/warnings detailed in the Error List or Output windows.</p>
  
  <p>Background: On this report I am using a table to display a sub-report [x] number of times, dependant on the number of related objects that exist in the SQL database. That is to say that the sub-report is set within one of the cells (the only cell) of the table, in a row that repeats for each item returned in a dataset.</p>
  
  <p>Removing the sub-report allows the master report to compile and run, so I feel the issue is related to the arrangement of the sub-report. If the sub-report only displays once, then the master report compiles and runs fine, it is only when a second instance is required that the issue arises.</p>
  
  <p>When testing the sub-report separately, it compiles and runs when given the parameters for each instance it is being asked to render from the master report. So I can rule out the idea that the data for the second instance is causing it to fail (in some div-by-0 type way).</p>
  
  <p>Given the lack of detail from the error and that the sub-report works on it's own, I do not understand why this is happening.</p>
  
  <p>Does anyone have any ideas for debugging or suggested solutions?</p>
  
  <p>Thanks</p>
  
  <p>Brian</p>
  
  <p><strong>tldr: Master report fails when a sub-report repeats more than once.</strong></p>