TO INVESTIGATE DATA REPORT ERRORS:
ERROR: "Report item expressions can only refer to fields within the current data
set scope or, if inside an aggregate, the specified data set scope."
1. Select Report -->
Data Sources and assure that proper sources are selected and that they match:
2. Right-Click on Table --> Properties
--> DataSet Name
3. Assure that if multiple data tables
are used, that field is suffixed with proper data set, especially if field name
is in dataset more than once: =((Fields!PART_MH.Value),
"ds_datasetname_datatablename")
+++++++++++++++
Re: Is there any way to find the error in SubReport?
Was this post helpful ?
When you run the app, Visual Studio Output window (from the menu choose View >
Output) shows these warning messages:
Case 1: Report definition (.rdlc) cannot be found:
Warning: An error occurred while executing the subreport 'subreport1': The report
definition for report 'Books' has not been specified (rsErrorExecutingSubreport)
Case 2: Parameter not passed by main report:
Warning: An error occurred while executing the subreport 'subreport1': One or more
parameters required to run the report have not been specified. (rsErrorExecutingSubreport)
Case 3: Data for subreport not supplied:
Warning: An error occurred while executing the subreport 'subreport1': An error
has occurred during report processing. (rsErrorExecutingSubreport)