title: The report server cannot process the report. rsInvalidDataSourceReference
body: <p>I've deployed a report which I'm accessing from my application. The first time I try to access I get the message </p>
  
  <blockquote>
    <p>The report server cannot process the report. The data source connection information has been   deleted. (rsInvalidDataSourceReference)</p>
  </blockquote>
  
  <p>However trying it the second time works just fine and the report shows properly. I deleted the datasource in ReportManager and created new one, but the error persists. Also deleted the report and added it again but to no avail.</p>
  
  <p>Would appreciate any inputs on this issue. Thanks.</p>
  
  <p>EDIT: Following code is called on button click. However this code throws no error or exceptions. When the report pop-up opens it just displays the error message I've listed above. On closing the pop-up and clicking the button again the report displays proper data. </p>
  
  <pre><code>        SchedulePopup.Open = true;
          SchedulePopup.Title = "Schedule Report";
          ReportViewer4.Visible = true;
          ReportViewer4.ServerReport.ReportPath = ConfigurationManager.AppSettings["serverPath"] + "Schedule";
  
          List&lt;ReportParameter&gt; paralist = new List&lt;ReportParameter&gt;();
          ReportParameter reportParam = new ReportParameter("OrganisationId", txtOrganisationId.Text);
          ReportParameter reportParam1 = new ReportParameter("LocationId", txtLocationId.Text);
          ReportParameter reportParam2 = new ReportParameter("PrdAcctId", txtProductAccountId.Text);
          ReportParameter reportParam3 = new ReportParameter("CustomerId", txtCustomerId.Text);
  
          paralist.Add(reportParam);
          paralist.Add(reportParam1);
          paralist.Add(reportParam2);
          paralist.Add(reportParam3);
          ReportViewer4.ServerReport.SetParameters(paralist);
          ReportViewer4.ServerReport.Refresh();
  </code></pre>