I have followed the answer here But I get a null reference exception if I do not create an instance of the ReportDataProvider. And when I do create an instance I am getting an error in the ReportDataProvider in the GetData function that says:

Failed to get a datasource (item)".

Item is what the QueryDataSource is defaulted to, am I supposed to override this?

I am near the point of just doing this with direct SQL and an ADO connector but I really want to avoid this. Our configuration is normal and nothing is out of the ordinary.

  • How do you instantiate ReportDataProvider? Is it something along these lines? (ReportDataProviderBase)Factory.CreateObject("reporting/dataProvider", true); – grg Oct 26 '17 at 14:18
  • I have tried that I have also done it the traditional way with just creating a new object. Once it is created it still just throws an error in GetData. – Chris Bartlett Oct 26 '17 at 15:10
  • Also, doing that way I get an error: 'reporting/data‌​Provider' has an invalid token. We are using the default configuration. Nothing has been changed. – Chris Bartlett Oct 26 '17 at 15:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.