locked
The definition of this report is not valid or is not supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services RRS feed

  • Question

  • User-1350042179 posted

    Hi

    I created a blank reportviewer in Visual Studio 2017 but after I added a control I received the error:

    ReportProcessingException: The definition of this report is not valid or does not support this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or it may contain content that is not in the correct format or that is not valid according to the Reporting Services schemas. Details: The report definition has an invalid destination namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' that can not be updated.

    I don't know the configuration to avoid this error.

    The unique solution was found in this link..

    https://stackoverflow.com/questions/36272514/the-report-definition-has-an-invalid-target-namespace-rsinvalidreportdefinition

    But I don't understand this behavior.

    In other words... Visual Studio changed:

    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
     with this code after I edited the report:
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

    Saturday, February 24, 2018 6:19 PM

All replies

  • User283571144 posted

    Hi neoaguil17,

    As far as I know, we could change the sql report's target sql server version in the project's property as below:

    Report project ----> Properties ----> general 

    Best Regards,

    Brando

    Monday, February 26, 2018 8:04 AM
  • User-1350042179 posted

    Hi

    The problem is that I don't have SQL SERVER DATA TOOLS since I only use ReportViewer. I use Visual Studio 2017 community

    Friday, March 2, 2018 11:51 PM
  • User283571144 posted

    Hi neoaguil17,

    As far as I know, we could only change the rdlc definition is using the XML editor.

    Since the report design view doesn't provide the way to change the version.

    We could only change it by xml editor.

    Best Regards,

    Brando

    Tuesday, March 6, 2018 7:43 AM
  • User-1350042179 posted

    Hi

    The goal is: What is the problem with the configuration in Visual Studio to avoid changing the rdlc each time that I edit the report?

    This is a problem of Visual Studio.

    Wednesday, March 7, 2018 5:35 PM
  • User283571144 posted

     Hi neoaguil17,

    Sorry.

    Do you mean after you edited the RDL schema version to 2008 and save, the VS changed the version back to 2016?

    As far as I know, each RDL schema version has its own xml format.

    If you have changed the RDL schema version at first time and edit the RDL.

    You couldn't change the RDL schema version after you have edited the RDL.

    So if you designed the RDL in 2016, you couldn't changed the definition to 2008.

    Best Regards,

    Brando

    Thursday, March 8, 2018 3:09 AM