【求助】Notes error: 域太大(32K)或视图的列和选择公式太大,小女子求助,达人请进!

lwfadmin 2005-03-17 10:30:46
我要对文档的一些域改写值或增加值,一个普通的文本域,查看帮助时32K,这个文档里面有很多域了。
我要往一个域里添加值:doc.aa = "abcabc"
doc.save(true,false)
,居然运行代理时,报错如下:
“Notes error: 域太大(32K)或视图的列和选择公式太大”

如果我只放doc.aa = "ab",在save的时候就不会报错,我想不明白,怎么可能这么点值就这样的错误,是因为这个文档太大了???请达人帮忙,小女子不胜感激!
...全文
992 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
fanmy_001 2005-08-02
  • 打赏
  • 举报
回复
仅仅是文本域,RTF域的内容不计在内,不过RTF的长度好像要计算在内的。
fanmy_001 2005-08-02
  • 打赏
  • 举报
回复
lotus整个文档的所有域加起来不能超过64k,超过了就是这个提示。

具体就是一个域可以最大放32k内容,则一个文档只能放2个域,再多一点就出这个错误了。
如果一个域放8k内容,则只能在一个文档上8个域,依次类推。
zilong0895 2005-08-02
  • 打赏
  • 举报
回复
将你的文档会比较大的域的IsSummary置为false,就可以保存了,如下
Set item = doc.getfirstitem("域名")
item.IsSummary = false

火云牌神 2005-07-31
  • 打赏
  • 举报
回复
Problem
You create a document, and attempt to save it manually using the user interface (for example, the Notes menu File, Save) or programmatically using Functions or the LotusScript Save method (NotesUIDocument class or NotesDocument class) you see the following error message:

"Field is too large (32k) or View's column & selection formulas are too large"

Or, in a LotusScript agent the following error message corresponding to error code 4000 occurs:

"Notes error: Field is too large (32k) or View's column & selection formulas are too large"

Less frequently you may observe one of the following errors in the user interface:

"Only plain text can be used in this type of field"

"Document has invalid structure"



Solution
These errors occur when a particular Text field in the document or the document itself has reached the maximum amount of Summary data that it can hold.
Notes/Domino 6.x has the following limits regarding Summary fields: 32k per field, 64k per document.

If the limit is relative to a particular field, workarounds are as follows:

- If the field must be of the Type Summary (allowing it to display in views) then the only workaround is to remove some of the text or place some of the text into another field (it is unlikely that 32k worth of data would be displayed in a view).
- If the field does not need to be displayed in a view then change the Type of the field to Rich Text or Rich Text Lite.

If the limit is relative to the total document, workarounds are as follows:

- Change whatever fields that do not need to be displayed in a view to Rich Text or Rich Text Lite.
- If the fields must be displayed in a view then there is no alternative but to break the information up into two documents.

Supporting Information:

If the LotusScript ComputeWithForm method does not set the Summary flag as expected refer to the document, "ComputeWithForm Does Not Set Summary Flag for Text Fields Over 15k" (#1090219) for more information.

The initial releases of the Notes 6 Client Help incorrectly state that the per Text field Summary limit is 15k. This issue was reported to Lotus software Quality Engineering (SPR # MGAN5GZQTT) and was addressed the Notes Client releases 6.0.3 and 6.5. For the 6.0.x codestream the fix for the issue appeared first in the release notes, not the on-line help. The on-line help has been updated in subsequent 6.0.x releases.

______________________________________________
from the Notes/Domino 6.0.3 and 6.5.x Release Notes:

Updated information on Notes limits
In the Notes Client 6 Help topic "Limits of Notes," the following information has been changed:

(Revised entry) Maximum size for text fields is 32KB (storage); 32KB displayed in a view's column
(New entry) Text (Summary) data per document is 64KB

______________________________________________
from the Notes 6.5.1 Client On-line Help

Topic: "Limits of Notes" What is the maximum size of text fields? 32KB (storage); 32KB displayed in a view's column
What is the maximum amount of Text (Summary) data per document? 64KB

心雪峰 2005-07-31
  • 打赏
  • 举报
回复
lwfadmin 2005-03-17
  • 打赏
  • 举报
回复
达人帮忙啊。
lwfadmin 2005-03-17
  • 打赏
  • 举报
回复
正如我写的,我只是往aa域里存放"abcabc",才6个字符!!我在调试的时候,用了on error goto errorhandle,然后打印错误信息,就是“Notes error: 域太大(32K)或视图的列和选择公式太大”,我已经将该域清空了,然后再存“abcabc”,依然是在save的时候出现这样的错误。这个代理仅仅是对一个文档增加一个aa域,里面加了一点点内容啊。
没天理!
xiaziabing 2005-03-17
  • 打赏
  • 举报
回复
是的,一个普通的文本域存放数据应该是16k吧!如果是RTF域是64K。
你先检查一下,你要存放的域里的数据是否超过了16K?
你先将此域清空后,在保存数据是否还出现这个问题呢?
lwfadmin 2005-03-17
  • 打赏
  • 举报
回复
上面写错了,“一个普通的文本域,查看帮助时32K”应该为“一个普通的文本域,查看帮助说可以存放32K”
zelloss 2005-03-17
  • 打赏
  • 举报
回复
哦,你还可以这样试,在已经存在的域中加入字符,看看啥结果
zelloss 2005-03-17
  • 打赏
  • 举报
回复
这个错误可能是由于文档整个大小超过了限制,IBM官方声称在6以后的版本中已经解决了这个限制,其实并没有解决
你可以一个一个字符的加,这样可以找到临界的那个字符数,应该是整个文档大小超过了
mason520 2005-03-17
  • 打赏
  • 举报
回复
很可能是数据库已经损坏了,你重新建一个数据库看看是否可以解决问题。
有时候lotus就这样~数据库损坏了,就在某些地方出现问题
maplescloud 2005-03-17
  • 打赏
  • 举报
回复
把你的代码改为:

doc.tmpField = "abcabc"
doc.save(true,false)

测试一下效果,如果通过,说明域aa有问题,如果没通过,说明文档结构有问题。

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧