简体   繁体   English

Reporting Services XML错误

[英]Reporting Services XML Error

Really annoying issue that I have spent a long time on. 我花了很长时间才真正烦人的问题。 I shall switch into Software Testing Bug Report mode (from a past life) to explain it. 我将切换到软件测试错误报告模式(来自前世)来解释它。

Scenario 脚本

  • I have modified a SSRS report to work with a new database structure 我修改了SSRS报告以使用新的数据库结构
  • The report uses a stored procedure which takes 4 parameters 该报告使用一个存储过程,该过程采用4个参数
  • One of these parameters has been added to work with the new database structure 添加了其中一个参数以使用新的数据库结构
  • Stored procedure works perfectly in SQL management studio 存储过程在SQL管理工作室中完美运行
  • Query works perfectly in the query designer window of report builder 查询在报表生成器的查询设计器窗口中完美运行

Expected Results 预期成绩

  • I expect that the dataset will show the fields when expanded 我希望数据集在展开时会显示字段
  • I expect that the report will run correctly 我希望报告能够正确运行

Actual Results 实际结果

  • No fields appear under the dataset in the Report Data Pane of report builder 报告生成器的“报告数据窗格”中的数据集下不显示任何字段
  • Report does not run 报告没有运行
  • I get the following error: 我收到以下错误:

There is an unclosed literal string. 有一个未封闭的文字字符串。 Line 1, position 64737. ---------------------------- Response is not well-formed XML. 第1行,位置64737. ----------------------------响应不是格式良好的XML。 ---------------------------- The attempt to connect to the report server failed. ----------------------------尝试连接到报表服务器失败。 Check your connection information and that the report server is a compatible version. 检查连接信息,并且报表服务器是兼容版本。

Notes 笔记

I have tried everything I can think of, including searching the report definition for unclosed strings but no banana. 我已经尝试了我能想到的一切,包括在报告定义中搜索未闭合的字符串但没有香蕉。

Has anyone else come up with this error in SSRS Report Builder? 有没有其他人在SSRS报告生成器中提出此错误?

Technologies Used 使用的技术

  • SQL Server 2008 R2 SQL Server 2008 R2
  • SQL Server Management Studio 2008 R2 SQL Server Management Studio 2008 R2
  • Report Builder 3.0 Report Builder 3.0
  • Building report on my local machine running Windows 7 在运行Windows 7的本地计算机上构建报告
  • Running report on SQL Server Remote Machine running Windows Server 2008 在运行Windows Server 2008的SQL Server远程计算机上运行报告

Thanks 谢谢

I hope this is not too late. 我希望现在还为时不晚。 But to anyone who comes across this same question I had a similar issue and I resolved it by removing my tablix that was generated and was still referencing fields no longer available in my updated sproc. 但对于遇到同样问题的任何人,我遇到了类似的问题,我通过删除生成的Tablix来解决它,并且仍在引用我更新的sproc中不再可用的字段。

All I did was to delete said tablix and regenerate it using the wizard and my issue was resolved. 我所做的只是删除所述tablix并使用向导重新生成它,我的问题得到了解决。 I would propose that you recreate whatever you are using to display the dataset. 我建议您重新创建用于显示数据集的任何内容。

If you cant find any malformed XML in your report definition I would check the data the stored procedure is pulling. 如果您无法在报表定义中找到任何格式错误的XML,我将检查存储过程正在提取的数据。 If there is a <, >, or any other symbol that would break XML in the actual data this could cause you to get this error. 如果存在<,>或任何其他符号会破坏实际数据中的XML,则可能会导致此错误。 Try pulling the report with a parameter that would cause no data to come back and see if you still get this error. 尝试使用一个参数拉动报告,该参数不会导致数据返回,看看是否仍然出现此错误。 If not then the problem could be in the data that comes back. 如果没有那么问题可能在于返回的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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