We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ReportViewer gives the following error message: "Provide Dataset inputs for Report"

Thread ID:





120189 Sep 9,2015 11:29 AM UTC Sep 14,2015 06:08 AM UTC ASP.NET MVC 5
Tags: ReportViewer
Vance Sankar
Asked On September 9, 2015 11:29 AM UTC

I have an MVC 5 application and I am attempting to view an .rdlc using the Syncfusion ReportViewer. The reportviewer loads with no data, only the columns defined in the .rdlc file, with the error "Provide Dataset inputs for Report".
This is the line I use to local the reportviewer: 
@Html.EJ().ReportViewer("reportviewer").ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local).ReportPath("~/Views/Reports/BatchReport.rdlc").ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/ReportsApi")).ReportLoaded("onReportLoaded").DataSources(ds => { ds.Name("DataSet1").Value(ViewData["ReportData"]).Add(); })

As you can see I am attempting to pass the data in ViewData from my Controller (as per one of the samples I saw). I've left the ReportsApi as the default. 

Any guidance as to where I might be going wrong is appreciated.

Soundara Rajan S [Syncfusion]
Replied On September 10, 2015 04:45 AM UTC

Hi Hemraj,

Thanks for contacting Syncfusion support.

The issue might have occurred due to the mismatch of given dataset name with your report dataset. So please ensure the given dataset name in your report. We have prepared a RDLC sample based on your requirement and it can be downloaded from the below location,

Please refer to the below UG documentation link for more details,

Soundara Rajan S.

Vance Sankar
Replied On September 10, 2015 07:29 PM UTC

Hey Soundara,
Yes ... the mismatch in the dataset names was the issue. I'm able to see my report with data now.


Soundara Rajan S [Syncfusion]
Replied On September 11, 2015 03:59 AM UTC

Hi Hemraj,

Thanks for the update. Please let us know, if you need any further assistance.

Soundara Rajan S.

Vance Sankar
Replied On September 13, 2015 09:35 PM UTC

I do have an additional question. I have parameters defined in my RDLC file and they display fine in the reportviewer. However, given I have the data for the report being loaded in my Controller Action I am not sure how to tie the report data and parameters together. Any thoughts?

Soundara Rajan S [Syncfusion]
Replied On September 14, 2015 06:08 AM UTC

Hi Hemraj,

We have option to filter the data for Dataset/ReportItem regions based on report parameter. So use the filter for DataSet/ReportItems regions based on your parameter. Please refer to the below MSDN article for more details,

Soundara Rajan S.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon