Deploy of a report with SSDT 2016 generates error
Asked Answered
F

1

10

I use VS2015 with SQL Server Data Tools; I have some Reporting Services (RDL) reports.

I want to deploy them to a Reporting Server with SQL Server 2014 installed.

In my report project I set the TargetServerVersion to "SQL Server 2008R2, 2012 or 2014", but the deploment process fails with an error similar to:

Report Definition invalid, because namespace .../2016/... invalid.
Faint answered 14/6, 2016 at 15:26 Comment(13)
You might need to edit the code directly to change that to the previous namespace. I've had to do that before. <Report xmlns="schemas.microsoft.com/sqlserver/reporting/2008/01/…" xmlns:rd="schemas.microsoft.com/SQLServer/reporting/reportdesigner">Sirotek
Simply opening a report with the newer SSDT changes the xmlns immediately and a new parameters section to the xml. Neither of which are likely to work on the production SSRS 2012 my current project is using. As per the question I also have the target version set to 2008r2-2014 which you'd think would do the job. Good thing I still have a VM with VS2013 and the older SSDT installed.Discouragement
Same problem: social.msdn.microsoft.com/Forums/sqlserver/en-US/…Discouragement
How did you deploy them? From this https://mcmap.net/q/1169428/-ssrs-2014-report-deploy-issue/10245 it seems that uploading the .rdl directly to ssrs won't work, but using the publish function or grabbing them from the bin folder will.Discouragement
I just deployed a report to a 2008 instance of SSRS using VS 2015 and SSDT 14.0.61021.0 (SSRS designer v. 13.0.1701.8). Worked! I don't have a 2014 version of SSRS propped up anywhere to try that. Have you tried to Rebuild the SSRS project?Caulescent
@TimAbell The link you have provided should resolve the issue. We struggled with it for a while until we figured it out. We are currently using VS2015 to develop and deploying to SQL 2008 R2 using the SharePoint integration. We have a current project to upgrade to SQL 2014 and while I am not involved with the testing, my understanding is that there have not been any issues deploying. Let me know if you can`t make this work because we may need to look more closely on our side!Hundley
@Hundley yep you are correct, I've actually just tested exactly that and VS succesfully downgrades the schema and strips out incompatible xml before putting the result in the bin/ folder.Discouragement
Remind me to vote to close this as a dupe of https://mcmap.net/q/1169428/-ssrs-2014-report-deploy-issue/10245 when my bounty expires. SO won't let me at the moment. I wasn't originally sure if it was the same issue but having experimented locally with various SSRS versions I'm no sure it is.Discouragement
I've now updated github.com/timabell/ssrs-powershell-deploy with a contribution from one of the forks that makes it read from the bin folder instead of the source folder, and my deploy now succeeds to a SSRS 2012 server.Discouragement
@TimAbell I have added an update to the answer with some clarification from another answer if you want to have a look. I forgot that I had 2 answers to similar questions :-). I have flagged the other as a duplicate.Hundley
Nice one, thanks. Looks goodDiscouragement
Possible duplicate of SSRS 2014 report deploy issueIntestinal
@TimAbell It's seems you forget to close this one as duplicateIntestinal
F
0

It is solved. You "MUST" recompile your report project and immediately afterwards you can deploy your reports without any problem.

Faint answered 12/5, 2017 at 11:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.