Domino程序常见错误中文解释

来源:互联网 发布:龙门县网络问政 编辑:程序博客网 时间:2024/04/30 10:19

1) HTTP Web Server: Item not found exception

错误解释:通过HTML操作某个域时(如document.all.input_name.value),这个input_name必须有对应的域名。也就是,域名必须有对应的html名字,也就是域属性里的Html标志符。

原解释:<input> element added to the form as Pass-thru HTML with no corresponding Notes field of the same name. All text input elements must have the equivalent Notes field!

我:通过填写HTML标记里的标志符,或在“其它”里面加上id=input_namename=input_name就行了,不过name=input_name有时生效,有时不生效,没总结过``


2
Lotus Notes Exception - Note item not found

错误解释:如果你的表单有一个已计算的子表单,并且这个子表单与主表单有同名域时,会有这个报错。

原解释:If your form has a Computed Subform and this Subform contains a field with the same name as one on the main form you will see this error.

我:字母意思,应该是没找到Note项,MS偶没看懂原文意思,这种情况下,客户端打开时会提示两个表单有同名域,但并不会报错啊。


3
Lotus Notes Exception - A view of that name cannot be found in the specified database

错误解释:@dblookup/column公式中制定的视图不存在,不可达或拼写错误。
原解释:The view specified in your @DBLookup/Column formula doesn't exist, is inaccessible or is spelt incorrectly


4
Lotus Notes Exception - Incorrect data type for operator or @Function: Text Expected

解释:很有可能是因为计算文本或公式,应该用字符串类型的地方使用了日期或数字类型。

或者当代理名为空时,即运行@Command([ToolsRunMacro];"")时,也有这个报错。
原解释:Most probably one of your Computed Text areas or @Formulas is trying to concatenate a date or a number with a string. For example "The total amount is " + aNumberField or "The date is " + @Now would cause this error. Use @Text to convert dates and number to a string. They can be tricky to find in a complex form. Usually best to remove formulas one by one until you find the offending party.
Can also happen if you blank out the name of a query save/open agent so that it reads @Command([ToolsRunMacro]; "") instead of @Command([ToolsRunMacro]; "<Your agent goes here>"). To rectify this, either remove the whole line and save the form or enter the name of the agent that you require. Note that you cannot simply type in "<Your agent goes here>" to return it to the default.

 

5HTTP Web Server: Invalid POST Request Exception

解释:很可能是因为试图提交的文档超过了服务器配置文档中定义的最大“Maximum POST data”(Internet Protocols->Domino Web Engine页面中)
原解释:Most probably that you are trying to post a document that is larger than the "Maximum POST data" setting in the Domino Web Engine section of the server document.


6
Lotus Notes Exception - Incorrect data type for operator or @Function: Number expected

解释:解释你的公式中是不是有两个“++”连用的情况。
原解释:Check for things like double ++ in your @Formulas. For example, I sometimes have "<style>" + @NewLine + on one line and then + "tr {" + @NewLine + on the next line of my $$HTMLHead field. Because the second line starts with a + and the first one ends in one we get ++. Remove one of them.

我:没懂原文的意思,这个报错字面意思似乎是:本应该用数字类型的地方,用了不正确的数据类型。


7
Lotus Notes Exception - File does not exist

解释:@DBLookup/Column中指定的数据库不存在。搜索时,使用了“view_name?SerarchView&Query=”中指定的视图不存在
原解释:The database filename you specified in an @DBLookup/Column formula doesn't exist.
The name of the view that precedes a "?SearchView&Query=" URL does not exist or is spelt wrongly.

 

8Lotus Notes Exception - Unsupported trigger and search type for agent being run in the background

解释:检查表单WebQueryOpenWebQuerySave这两个地方的代理的“运行时间”设置。

原解释:Make sure your Web Query Open/Save agents have the option "Run Once (@Commands may be used)" selected in "Which documents should it act on" and "Manually from the Agent list" selected in "When should this agent run?". (Thanks to Patrick Correya)


9
Lotus Notes Exception - Error validating user's agent execution access

解释:一般是因为试图运行代理的用户不在Domino Directory中(names.nsf),或这个用户不被允许运行代理
原解释:Usually occurs because the ID that is being used to run the Agent is not listed in the Domino Direcotry (NAB) and being allowed to run Agents.


10
Lotus Notes Exception - Invalid document identifier

解释:情况一:表单WebQueryOpenWebQuerySave这两个地方的代理名字错误或不存在

情况二:表单中使用的共享域,已经在其它地方被删除或改名了

情况三:使用"?DeleteDocument"删除文档时,URL中的视图名不存在。而当使用"?OpenDocument" "?EditDocument"时,URL中的视图名可任意。
原解释:If your Web Query Save/Open agent is named wrongly or doesn't exist.
Could also be that a Shared Field on the form has been removed from the database or has been renamed.
URLs that end in "?DeleteDocument" will throw this error if the view that is specified does not exist. It is okay when using "?OpenDocument" or "?EditDocument" to use any string in place of the view name, yet not when deleting. Try using a view you know exists or using "/$DefaultView/".

我:运行的代理不存在时,似乎不报这个错,而是报“Entry Not Found in Index


11
Lotus Notes Exception - Entry Not Found in Index

解释:@dblookup参数中的key不是第一排序列,导致@dblookup返回报错。可以用@iserror判断是否返回报错。
原解释:Your @DBLookup may have failed as the entry you looked for is not in the first sorted column of the view. To avoid this assign your lookup to a variable and then use @IsError to check whether a value is returned. (Thanks to Steve Cochrane, Montreal)

我:也可用参数[FAILSILENT],使返回””,而不是报错。


12
Lotus Notes Exception - Query is not understandable

解释:使用“?SearchView&Query=”进行查询时,Query语句格式不正确。
原解释:If you use the ?SearchView command and try to search for reserved keyword/symbol like "field" or "/" (Thanks to Kurt Denolf)


13
Lotus Notes Exception - The Address Book does not contain a cross certificate capable of validating the public key

解释:检查你运行的代理已签过名或已做交叉验证。
原解释:Check that any agents you are running are signed by an ID in the domain that the server is in or that have been cross-certified.


14
Lotus Notes Exception - Special Database Object cannot be located

解释:找不到指定的数据库对象,可能是数据库,表单,视图等等
原解释:Usually due to the database not having a defualt form and you try to open a document without a correct form in the "Form" field or no "Form" field at all. Can also be caused by URLs ending in "$help" and there being no "Using this database" document created or if the "on web launch" property is set to open the "About Database" page and this has not been created yet or you use "$DefaultView" in a URL and a default view has not been specified


15
Lotus Notes Exception - @Function is not valid in this context

解释:可能是在只读模式下,执行了@Command([FileSave])之类的命令。
原解释:Sounds quite an obvious one but usually due to an Hotspot that uses something like @Command([FileSave]) when the document is in read-mode.

我:这个错误的产生原因绝不是原作者认为的这么简单```有这样一种情况(也就是我以前贴的一个问题):

以非admin用户打开文档A,webqueryopen时,执行了(未选作为Web用户运行)包含save命令的代理,然后再点击一个热点,该热点中有“@Command([ToolsRunMacro];"agent_name");@Command([EditDocument])”这时,也会有该报错,去掉@Command([EditDocument])后,不再报错,或者将open时执行的代理选择作为web用户运行,也不报错。有兴趣的朋友可以继续试下其它情况,我被折腾疯了,没找到好的解决方法。


16
Application Exception - Documents treated as HTML cannot be edited

解释:如果一个表单的内容类型选择为“HTML”,那么当调用这个表单时url中应使用?readform而不是?openform
原解释:If you have a form for whom you have turned on the "Treat document contents as HTML" property then you need to ensure that URLs that call the form end in "?ReadForm" rather than "?OpenForm"

我:readform打开时,会隐藏所有可编辑域,所以没有报错。Openform不会隐藏,就报错了```.


17
HTTP Web Server: Graphic Background Not Found Exception

解释:图像文件未找到?Navigator浏览器偶没有用过…….

原解释:If you are opening a Navigator (or a form that contains an Embedded Navigator) make sure that the Navigator's property "Web browser compatible" is enabled.


18
Lotus Notes Exception - Unable to interpret Time or Date
解释:一种情况是NOTES服务器和操作系统的时间被设置成不同格式(NOTES服务的时间如何设置-_-!!没设置过,汗)

也可能是表单中日期域的值不正确。

原解释:This problem can be down to the fact that the Notes server and the OS on the machine have been set up to use different date formats. Both need to be the same.
Could also be that the Date field on the form has its value set incorrectly in the Web Query Open agent and consequently Domino cannot render it properly.


19
HTTP Web Server: Corrupt Data Exception

解释:一般是因为用户打开表单后,该表单设计被更改了,用户提交表单时,会有这个报错。
原解释:Not that common an error in practice. Usually due to a change in the design of a form taking place after a user opens it and before they submit it.


20
HTTP Web Server: Invalid URL Exception

解释:一般是由于URL格式不正确。遵循“/目录/数据库/视图/文档”
原解释:Make sure that everything after the "db.nsf/" portion appears legal. Something like "/dir/db.nsf/test?OpenDocument" would cause this error as there is no view specified


21
HTTP Web Server: Unknown Command Exception
解释:一般是因为命令敲错了-_-OpenForm敲成了OpnForm

原解释:Time to check the URL. More often than not it is something obvious like "?OpnForm" or a similar typo.


22
HTTP Web Server: Illegal Arguments Exception

解释:非法参数?检查一下执行的命令吧
原解释:Any ideas people? Been a while since I saw this one!


23
HTTP Web Server: Comparison operators must be supplied two values of the same data type.
解释:比较运算符只能用来比较相同类型的数据。检查下用到比较运算符的数据的类型吧

原解释:This error occurrs when you're comparing fields of different data types. To fix it, check the data type to make sure comparison fields of the same data type or at least convert their values to the same type (Thanks to Venu Rao).


24
Lotus Notes Exception - Insufficient arguments for database function

解释:参数不够`````太多了不行,少了也不行啊….
原解释:Usually in an @DBLookup and you forgot to specify the key or the column number. Check your @DBLookups


25)Lotus Notes Exception - @Function is not valid in this context
Probably you are trying to do something like create a response document (@Command([Compose];"rq") from a page that is NOT a document. Could also be an "Edit" link (@Command([EditDocument])) on a form or a new document or a view etc...

跟第15条重复了。


26
HTTP Web Server: Lotus Notes Exception - Invalid UNID; UNID must be a 32-digit hex string

解释:检查下涉及UNID的函数吧,使用的UNID无效
原解释:Are you using @GetDocField in one of your fields on a child form to get a value from its parent? If so check the resulting UNID is correct.