title: Reporting Services (.RDLC) Two Datasets
body: <p>I have a .rdlc with two datasources.
  When I was using only the Datasource named "dsLancamentos", it was working fine.
  Now, I've add a second one, named "dsDespesas", and the Report Viewer throws this message:</p>
  
  <blockquote>
    <p>A data source instance has not been supplied for the data source 'dsDespesas'.</p>
  </blockquote>
  
  <p>And here is my code:</p>
  
  <pre><code>var dsReportLancamentos = new dsReportLancamentosTableAdapters.PR_REPORT_LANCAMENTOSTableAdapter();
  var dsReportDespesas = new dsReportLancamentosTableAdapters.PR_REPORT_SEA_DESPESASTableAdapter();
  var tabela = (DataTable)dsReportLancamentos.GetData(txtNomeProduto.Text, Funcoes.GetDateTimeValueOrNull(DataDe), Funcoes.GetDateTimeValueOrNull(DataAte), Funcoes.GetByteValueOrNull(status));
  var despesas = (DataTable)dsReportDespesas.GetData(Funcoes.GetDateTimeValueOrNull(DataDe), Funcoes.GetDateTimeValueOrNull(DataAte));
  
  
  // CONFIGURAÇÕES DO REPORT -----------------------
  ReportDataSource rds = new ReportDataSource("dsLancamentos", tabela);
  ReportDataSource rdsDespesa = new ReportDataSource("dsDespesas", despesas);
  rvReport.Reset();
  rvReport.ProcessingMode = ProcessingMode.Local;
  rvReport.LocalReport.ReportPath = Server.MapPath("~/reports/LancamentosReport.rdlc");
  rvReport.LocalReport.DataSources.Add(rds);
  rvReport.LocalReport.DataSources.Add(rdsDespesa);
  // -----------------------------------------------
  </code></pre>
  
  <p>Can anyone help me with this? I just can't find whats wrong.</p>
  
  <p>Tks.</p>