Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi,
I have been coming across this error very very often.
"A data source instance has not been supplied for the data source"
 
Please advise why it comes and how to fix it.
 
I googled it but did not get any solid method to fix it.
 
Thanks
Furqan
 
Update from OP:
OP resolved the issue himself and posted the resolution as answer.
Posted 7-Feb-11 22:13pm
Edited 7-Feb-11 22:35pm
v2
Comments
Ashok.C.Patil at 23-Dec-11 8:31am
   
I am facing error A data source instance has not been supplied for the data source
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I just found the way to fix it.
 
Got o your ReportViwer that carries the report.
Click on the triangle above and click
Choose Data Sources. Here you will find the binding sources in in your data sets.
Just choose your binding source and you are done.
  Permalink  
Comments
Sagotharan Jagadeeswaran at 8-Apr-11 5:44am
   
i have the same error.
but i cant find the triangle in reportviewer. Iam using wpf.
joeller at 12-Aug-13 15:16pm
   
Does not work. No datasources listed in "choose datasources"
Bill Headley at 19-May-11 15:44pm
   
Thank you! I was pulling my hair out before stumbling on your suggestion.
Member 10224892 at 23-Aug-13 7:12am
   
not working
evdjramos at 8-Sep-11 22:35pm
   
It works!
Thank you!!
kris_viswa at 24-Nov-11 7:56am
   
Donot find triangle can you unfold secret?
Tariq Newaz Shahriar at 26-Jan-12 4:20am
   
lol...here the triangle means the 'smart tag' of the report viewer control. which is actually a '>' sign. and can be found on the designer view of the aspx file.
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.
aaa2009 at 1-Oct-12 7:23am
   
Hello,
 
I am having a same problem but this solution did not work with my case.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I also have this error "A data source instance has not been supplied for the data source"
I have two binding source to bind to. How do I remove one of them?
  Permalink  
Comments
SITU.PATI at 15-Oct-14 5:31am
   
i have one dataset bt still the same problem exits
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I had the same problem, with 3 datasources in the report while i only used 1.
 
It looks like i caused this by referencing the same datatable, from multiple datasets.
 
I removed all extra references to datasources in the form's designer page.
 
But when i click on the report, to select the datasource all three where still there.
 
One solution that worked, was to click on the report, and set all datasource instances to the correct dataset-datatable.
 
But the correct solution that solved the problem, was to edit the report.rdlc file with notepad.
 
There you will find under "datasets", a section for each datasource.
 
Carefully delete the sections for the datasets you dont want, problem solved..
 
Regards
 
John van Eijck
  Permalink  
v2
Comments
kohinoorhingu at 15-Oct-13 3:33am
   
I want to create rdlc report without dataset, means i call report from code, then how can i develop it? please helpppp.....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 150
2 PIEBALDconsult 110
3 Richard MacCutchan 105
4 Sergey Alexandrovich Kryukov 104
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 29 Jul 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100