如何查看哪个数据集向我抛出有关缺少参数的错误?

How can I see which dataset is throwing me an error about a missing parameter?

我在尝试查看远程服务器上的报告时遇到服务器错误 - 看起来部署可能失败了,因为它在我的开发环境中运行良好。我得到的错误是:

An attempt was made to set a data set parameter '@shopName' that is not defined in this data set.

但是,有大量数据集与此报告相关联。我怎样才能把它缩小到只有有问题的数据集;以便我可以正确调试它?

查看导致问题的数据集的最佳方法是打开报表服务器服务日志文件。这可以在 C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\LogFiles for SQL Server 2014 找到。

打开目录中最新的 .log 文件,找到您之前看到的错误消息。

在其上方您将看到导致问题的数据集的名称:

An exception has occurred in data set 'getShopAddress'