Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DefinitionInvalidException: The definition of the report '' is invalid

I get the following error in my reportviewer report when I upgraded from Visual Studio 2015 Community to Visual Studio 2017 Community.

Microsoft.Reporting.WinForms.LocalProcessingException: 'An error occurred during local report processing.'

Inner Exception DefinitionInvalidException: The definition of the report '' is invalid.

like image 204
Emile Cloete Avatar asked May 09 '17 12:05

Emile Cloete


People also ask

How do you fix the SSRS error definition of this report is not valid?

Definition of this Report is Not Valid – Solution. There are no tricks to solving this problem. All you need to do is set the RDL to the appropriate version that's supported by your SSRS server.

What is Rdlc in C#?

The RDLC stands for Report Definition Language Client side. Actually It is an extension of report file created by using Microsoft reporting technology. The SQL Server 2005 version of Report Designer is used to create these files. The ReportViewer control in client side can directly execute the RDLC reports.

What is the definition of the report is invalid?

An error occurred during local report processing. The definition of the report " is invalid. An unexpected error ocurred in Report Processing. Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectMode.

What does ++ innerexception mean in reporting services?

+ InnerException {"The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas.

Why is the report definition not supported by reporting services?

Show activity on this post. The report definition is not valid or supported by this version of Reporting Services. This could be the result of publishing a report definition of a later version of Reporting Services, or that the report definition contains XML that is not well-formed or the XML is not valid based on the Report Definition schema.

What is a pvinvaliddefinition error in SSRs?

Error pvInvalidDefinition : The definition of the report '\ACPA0100 - Campaign Revenue Variance Summary.rdl' is invalid. This error occurs when the RDL you uploaded has a version that is not supported by the SSRS server.


2 Answers

Please verify that you have installed the following nuget packages.

For Winforms : https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.Winforms/140.340.80

For ASP.NET : https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WebForms/140.340.80/

You might also need to install the Report Designer :

https://marketplace.visualstudio.com/items?itemName=SqlReportingServices.MicrosoftRdlcReportDesignerforVisualStudio-18001

If it does not work, click "continue" in Visual Studio debugger when you get the exception and go see on the Web page what are the error details.

like image 108
JP Tétreault Avatar answered Nov 05 '22 10:11

JP Tétreault


this error occurred for not installing correct packages. I have solved this problem by installing latest reportviewer control from this link

https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WebForms/150.900.148
like image 30
Alamgir Avatar answered Nov 05 '22 10:11

Alamgir