本文介绍了水晶报表:“文件太大,无法附件";错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是水晶报表服务器的新手.这里我解释错误细节.

我正在使用 SAP Business Objects CMC 为我的应用程序生成报告.以下是图片中的版本详细信息.

当我尝试生成文件大小超过 1MB 的报告文件时,它会抛出以下错误.

错误查看器无法处理事件.1c84865dce535c5.pdf 文件太大,无法作为附件.[]----错误代码:0 [CRWEB00000119]

所以,我去以下位置检查 maximumUploadFileSize.

1.C:Program Files (x86)SAP BusinessObjects	omcatwebappsdswsbobjeWEB-INFclassesdsws.properties2. C:Program Files (x86)SAP BusinessObjectsSAP BusinessObjects Enterprise XI 4.0warfileswebappsdswsbobjeWEB-INFclassesdsws.properties3. C:Program Files (x86)SAP BusinessObjectsSAP BusinessObjects Enterprise XI 4.0javapjscontainerwork.WebApplicationContainerServerusinessobjectsdswsbobjeWEB-INFclassesdsws.properties

#限制上传文件总大小的安全措施

最大上传文件大小 = 10485760

设置为 10485760 (10 MB),据我了解,这是此 参考文档.

那么,如果它支持高达 10 MB,为什么当报告文件超过 1MB 时它会抛出错误?

我尝试将大小增加 10 的倍数,即所有这些文件中的 104857600 (100 MB),然后重新启动服务器.但是没有成功,在重新启动服务器后,第三个文件中的修改值再次设置为旧值 (10485760).请帮帮我.

有没有办法通过管理员控制台增加maximumUploadFileSize?

如果您对此有任何疑问/疑问,请留下您的评论.

解决方案

这个问题可以通过以下步骤解决.

实际上这个问题与试图在水晶报表服务器中生成报表的记录数有关.默认记录数据大小限制为 20,000.通过将限制更改为 0(表示无限制),我们可以解决此问题.

按照以下步骤更改此设置:

  1. 登录 CMC
  2. 转到下拉菜单中的服务器
  3. 展开服务类别
  4. 选择Crystal Reports Services
  5. 在右侧窗口会列出当前运行的服务,在Description下找到CrystalReports2013ProcessingServer.
  6. 双击它会跳转到Properties页面.
  7. 预览或刷新时读取的数据库记录(0表示无限制)"设置值0.
  8. 点击保存&关闭.
  9. 重启CrystalReports2013ProcessingServer.

现在尝试生成大数据pdf文件,应该可以正常工作.

I am new for crystal report server. Here I'm explaining error details.

I'm using SAP Business Objects CMC for report generation for my application. Below is the version details in image.

When I try to generate report file with more than 1MB of file size it is throwing below error.

Error

The viewer could not process an event. 1c84865dce535c5.pdf File is too large for attachment. [] ---- Error code:0 [CRWEB00000119]

So, I went to following location to check the maximumUploadFileSize.

1. C:Program Files (x86)SAP BusinessObjects	omcatwebappsdswsbobjeWEB-INFclassesdsws.properties

2. C:Program Files (x86)SAP BusinessObjectsSAP BusinessObjects Enterprise XI 4.0warfileswebappsdswsbobjeWEB-INFclassesdsws.properties

3. C:Program Files (x86)SAP BusinessObjectsSAP BusinessObjects Enterprise XI 4.0javapjscontainerwork<ServerName>.WebApplicationContainerServerusinessobjectsdswsbobjeWEB-INFclassesdsws.properties

It is setted to 10485760 (10 MB), As per my understanding this is default size from this Reference Document.

So, if it is supporting upto 10 MB why it is throwing error when report file exceed 1MB?

And I tried to increase the size by multiple's of 10, meaning 104857600 (100 MB) in all this files, and restarted the server. But with out success, after restarting the server the modified value in third file is again setting to old value (10485760). Please help me in this.

Is there any way to increase maximumUploadFileSize through administrator console?

Please drop your comments, if you have any questions/doubts regarding this.

解决方案

This issue can be resolved by following steps.

Actually this issue is related to number of records which are trying to generate as report in crystal report server. The default record data size limit is 20,000. By changing the limit into 0 (for Unlimited) we can able to resolve this issue.

Follow below steps to do this setting changes:

Now try to generate the large data pdf file, it should work fine.

这篇关于水晶报表:“文件太大,无法附件";错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-10 19:29
查看更多