Closed devingoble closed 7 years ago
Hello, could you send the content of that report and upload a screenshot of your release task configuration? I guess you're using SQL Server 2016 R2?
Are you sure you're not deploying to SQL Server 2012 ? What is the TargetVersion in the deploy properties in VisualStudio?
We have tested on SQL Server 2016 and our reports contain the same schema's as your reports:
<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/2016/01/reportdefinition">
It is being deployed to SQL Server 2012. The report was built in the latest version of SSDT (17.*) for VS2015, and it deploys just fine from Visual Studio. We are only having the problem trying to deploy through TFS.
The SSDT versions are specific to SQL Server versions (thus the difference in report schema version). I think you need to install an older version of SSDT to create the reports or modify the reports so they use the SQL Server 2012 schema.
Our extension uses the Reporting Services Web Service. Apparently Visual Studio rewrites the source files depending on the target version so they use a schema version that matches the TargetVersion property: http://stackoverflow.com/questions/36071175/can-i-control-the-version-of-new-ssdt-reports-in-visual-studio We could look into implementing this behavior similarly in our extension.
@devingoble When deploying through Visual Studio, it will build the reports for the specified SQL version (in your case 2012) If you are not building your reports on TFS and then deploying the built reports to your reporting server, you will be trying to deploy reports created for SQL 2016 (which is the default when adding new reports in Visual Studio)
Can you please confirm the following:
1.) You are building the report project (.rptproj) in TFS prior to deploying the reports 2.) You are attempting to deploy the built reports (eg /bin/Release/.rdl) 3.) You are not attempting to deploy the reports located directly in the project's root folder
I didn't know about the extra build step. I will make sure to build the reports in TFS before attempting to deploy.
Thank you.
@ygeelen-tb Above issues is somewhat similar, but in my case I do build the reports in TFS and Publish them
When I attempt to deploy reports, I get the following error:
However, deploying from Visual Studio works, and the reports execute fine.