简体   繁体   中英

SSRS - Custom parameter layout was removed from the report

I installed a fresh copy of Visual Studio 2015 on a new computer as well as the SSDT December preview. Report server is SQL Server 2008 R2. I can view and build my reports successfully, no problems there, but for about half of the reports I get the following warning message:

Custom parameter layout was removed from the report. /
SQL Server 2014 Reporting Services and earlier do not support custom parameter layout.

The message appears every time I clean/rebuild, so something isn't changing permanently like VS claims. I don't even know what a custom parameter layout is, so I'm pretty sure I don't need to worry about this. How can I either disable the warning message or fix the problem it's complaining about?

Edit: Confirming Jordan's comment. Disabling the XAML Designer no longer stops the ReportParametersLayout section from being generated.

Either ignore the message or manually remove the ReportParametersLayout section from each report.

Prior workaround: (No longer works as of Update 3) If I understand correctly, it appears the warning is caused by the XAML Designer in VS2015 sending data which is only compatible with SQL 2016 or later.

I'm guessing VS devs could resolve the issue if they add some logic to stop XAML Designer output when we select any "TargetServerVersions" earlier than 2016.

Until then, you could: 1.) Continue to ignore the warnings 2.) or you could disable XAML Designer so you will no longer get the warning messages. (Tools > Options > XAML Designer > Uncheck "Enable XAML Designer" then restart VS2015)

您可以通过在报告的代码视图中注释掉或删除<ReportParametersLayout>...</ReportParametersLayout>标记以及其中的所有内容来禁用自定义参数布局。

Do not change anything (XAML Designer settings), deploy the report anyway. It will work on the server. Make sure your parameters are all set properly, and when you run this report in preview mode in Visual Studio/MSDT there are no errors (warnings are ok) in "error list" pane, even if the report isn't running. If you are using Visual Studio/MSDT 2015 or later and deploying it on servers earlier then 2014, this message will appear, and report may not run in Visual Studio/MSDT (2015 or later).

更改Project文件属性中的TargetServerVersion以匹配您的实际SQL Server版本。

The correct thing to do is to use Visual Studio 2008 for deploying reports to SQL Server 2008 R2.

If you use a newer version of Visual Studio, it will generate reports with xmla elements that SQL Server 2008 does not recognize.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM