A data source instance has not been supplied for the data source"Product_Detail" in Microsoft reporting service

a data source instance has not been supplied for the data source 'check dependencies'
reportviewer choose data sources empty
a data source instance has not been supplied for the data source snapshot time
how to bind dataset to rdlc report in c#
cannot create a data reader for dataset
how to add datasource to rdlc report
how to add datasource to rdlc report dynamically
creating dataset dynamically in c# and passing to report viewer

I`m trying to display record in a Report. Data is in the Dataset. but it is not binind to them. When forms load it shows it report layout. But when i click on the button it show errors. below is my code.

using Microsoft.Reporting.WinForms;
//------------------------------------------------------------------
// <copyright company="Microsoft">
//     Copyright (c) Microsoft.  All rights reserved.
// </copyright>
//------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ReportsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

            this.reportViewer1.RefreshReport();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            System.Data.DataSet ds = GetDataSet();
            //reportViewer1.LocalReport.ReportPath = "Report1.rdlc";
            ReportDataSource rds = new ReportDataSource("ProductsDataSet", ds.Tables[0]);
            this.reportViewer1.LocalReport.DataSources.Clear();
            this.reportViewer1.LocalReport.DataSources.Add(rds);
            this.bindingSource1.DataSource = rds;
            this.reportViewer1.RefreshReport();
        }

        private System.Data.DataSet GetDataSet()
        {
            System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection("Data Source=DELL;Initial Catalog=Products;Integrated Security=True");
            sqlConn.Open();
            string sql= string.Format ( @"select o.[User], o.OrderDate, o.Quantity, o.OrderDetail, c.ShopName, c.[Address], c.City, c.Ph, p.* from dbo.Clients c,dbo.Product_Service o,Product_D p,Junction j where o.ClientId = c.ClientId
                            and o.ProductId  = j.ProductId 
                                and j.PCode = p.PCode
                                  and o.ClientId = 41
                                        and o.OrderDate='11/9/2012';");

            System.Data.SqlClient.SqlDataAdapter ad = new System.Data.SqlClient.SqlDataAdapter(sql, sqlConn);
            System.Data.DataSet ds = new System.Data.DataSet();
            ad.Fill(ds);
            sqlConn.Close();
            return ds;
        }
    }
}

In my data set i have 3 tables. I select the bind source on the top of the reportviewer where a little arrow shows.

I bumped into this problem while using version 10 of the ReportViewer while using Visual Studio.Net 2012 to edit code.

I found a solution by taking the name of the Data Source in the error message (in the case above, it's "Product_Detail"). I then went into source code view, found the ReportViewer, its DataSources, and then inside its ReportDataSource.

I set the Name property of the ReportDataSource to the same as the Data Source mentioned in the error message (ie "Product_Detail").

I hope this works for you as it did for me.

Also, if you have the latitude to use a later version of the ReportViewer control, you may find that this problem either doesn't appear or is easier to solve.

A data source instance has not been supplied for , I bumped into this problem while using version 10 of the ReportViewer while using Visual Studio.Net 2012 to edit code. I found a solution by  1. go to your aspx file where the ReportViewer has. 2. click on designer or split view. 3. then on the report viewer control you can see the small smart tag button at top right of that control.

"ProductsDataSet" is the name of the DataSource you are giving it. Your Error is saying "A data source instance has not been supplied for the data source"Product_Detail" in Microsoft reporting service"

I'm assuming you're assigning it the wrong name.

Try,

ReportDataSource rds = new ReportDataSource("Product_Detail", ds.Tables[0]);

If you do have a datasource in the report called "ProductsDataSet" then you probably have 2, in which you'd wanna delete the one you aren't using or assign it a datasource as well.

A Data Source Instance has not been Supplied || Solved || In English , This is a Troubleshooting done to resolve the error, A Data Source Instance has not been Duration: 3:27 Posted: Jan 2, 2017 A data source instance has not been supplied for the data source“Product_Detail” in Microsoft reporting service 3 How to supply data source instance for report viewer in code C# ASP.NET

I ran into this in VS2013 in my c# app.. so in case others get here..If you added the dataset in the report designer.. Go to your form, in the designer, click the action arrow on the reportviewer control. Select Rebind Data Sources.

A data source instance has not been supplied for , Hi I really need help with this problem that I have been working on for some time I have an Sql database and a report in asp.net webpage that is  But When I run the project, I get the next error: A data source instance has not been supplied for the data source ‘dataSource1’, I have tried to find a similar case on the net but succeeded to find nothing, any help please ?

    Dim rptDataSource As ReportDataSource
    Try
        With Me.ReportViewer1.LocalReport
            ReportViewer1.LocalReport.ReportPath = Application.StartupPath & "\RTFLS\Report1.rdlc"
            '.DataSources.Clear()
        End With
        Dim ds As New POAS.CustomersTotalPayment 
        Dim da As New POAS.CustomersTotalPaymentTableAdapters.PAYMENTSTATUSTableAdapter

        da.Fill(ds.PAYMENTSTATUS)

        rptDataSource = New ReportDataSource("CustomersTotalPayment", ds.Tables("PAYMENTSTATUS"))
        Me.ReportViewer1.LocalReport.DataSources.Add(rptDataSource)

        Me.ReportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout)
    Catch ex As Exception
        MessageBox.Show(ex.Message, My.Application.Info.Title, MessageBoxButtons.OK, MessageBoxIcon.Error)
    End Try


    Me.ReportViewer1.RefreshReport()

A data source instance has not been supplied for - MSDN, A data source instance has not been supplied for the data source “DataSet1”. Please note that I have checked the "Choose Data Sources  A data source instance has not been supplied for the data source “DataSet1” Please note that I have checked the "Choose Data Sources " dialog from my report viewer: (Although I thought that wouldn't help) And here is my code:

if you add another table to the xsd form after adding the report to the report viewer you might get this error.

  1. delete to report viewer and add it again
  2. set the report to the report viewer
  3. now go to the Load event of the form (that includes the report viewer and add the Fill for new dataset.

    private void rptForm_Load(object sender, EventArgs e) {
      this.vwrpt_TableAdapter1.Fill(this.DataSet1.vwDataset);
    }
    

none A data source instance has not been supplied for the data , A data source instance has not been supplied for the data source '<the_data_set​>'. If you receive this error, then you are likely missing a line in  This is a Troubleshooting done to resolve the error, A Data Source Instance has not been Supplied. If you have any suggestions or queries, write them in comments below or mail me at

Reporting Services, A data source instance has not been supplied for the data source '​bramandamDataSet_Expenzsection'. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. Just select "Choose Data Sources" in the ReportView Tasks. In the Data Source Instance choose your Current BindingSource that you created, click ok and thats all thats work for me

RDLC Report: A data source instance has not been supplied for the , Render method call - InnerException = "A data source instance has not been supplied for the data source". The dataset and table supplied is valid as it works with  A data source instance has not been supplied for the data source 'DataSet1'. I cant understand why this is happening, I have selected the datasource in the reportviewer already. Any help is appreciated . Here is the code of the page Default3.aspx

LocalReport Error, net object. I keep getting the error when I do it: A data source instance has not been supplied for the data source "blah" I'm  A data source instance has not been supplied for the data source“Product_Detail” in Microsoft reporting service 2 rdlc report - ‘A data source instance has not been supplied for the data source’ error

Comments
  • Thank you. Now why couldn't Microsoft put that suggestion in their error message.
  • Thankx, you saved my day :-)