I was trying to add a column to an existing report. I have just upgraded from VS 2013 to 2015 and it was the first task like that.
When I changed the report and tried to deployed it ewer version wasn't able to be deployed to an older SSRS version.
When I tried to preview I got below error and warnings:
- Custom parameter layout was removed from the report. SQL Server 2014 Reporting Services and earlier do not support custom parameter layout.
- [rsInvalidReportDefinition] 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: Data at the root level is invalid. Line 1, position 113933.
Failed to build item
Step-by-step guide
I checked the SSRS version on all environments and it was the same.
Finally the issue resolved by following below steps:
1- Right click on the report in Solution Explorer and choose "View Code"
2- The first two lines of code looked like this:
(sorry I could't put the xml code because my account is not verified)
The only thing which I changed was the 2010 to 2016 in the first line of code (right clicked on the report and 'view code') and then the file was saved and deployed successfully.