Report definition not valid error 2015

After updating our ssrs 2012 environment to visual studio 2015 I sometimes get an error when deploying a report.

Error rsProcessingError : 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. Details: The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition’ which cannot be upgraded.

These reports all have 2 things in common.

  1. There is a ReportParametersLayout tag in the code
    <ReportParametersLayout>
    <GridLayoutDefinition>
    <NumberOfColumns>4</NumberOfColumns>
    <NumberOfRows>2</NumberOfRows>
    </GridLayoutDefinition>
    </ReportParametersLayout>
  2. The Report tag has the old formatting.
    <Report xmlns=”http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition” xmlns:rd=”http://schemas.microsoft.com/SQLServer/reporting/reportdesigner”>
    instead of
    <Report xmlns:rd=”http://schemas.microsoft.com/SQLServer/reporting/reportdesigner” xmlns:cl=”http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition” xmlns=”http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition”>

Solution

What worked for me was removing the ReportParametersLayout node completely and changing the report tag to the 2010 formatting.

OR (and that is probably the preferred one), change one thing in the report and deploy again. 🙂

 

Leave a Reply

Your email address will not be published. Required fields are marked *