Carl Manabat
Carl Manabat

Reputation: 51

A field in the dataset 'Dataset1' has the name" ". Field names must be CLS-compliant identifiers

Im creating a report.rdlc using ReportViewer and I occuring this error.

Upvotes: 1

Views: 16296

Answers (2)

Gulshan
Gulshan

Reputation: 41

If you have the column name in data set like "Customer Name" Change it to "Customer_name" put underscore or Remove Space

Upvotes: 4

Dragon
Dragon

Reputation: 1088

Sol1:
Changing name of your field according to CLS Compilance will resolve your issue.

Sol2:
Also if you are not using this field in your report and its just appearing in your rdlc due to its use in viewmodel ,then you can just delete it from rdlc and your issue will be resolved.

Upvotes: 0

Related Questions