Lotus 错误 "Could not create field %1"
来源:互联网 发布:遥感卫星数据 编辑:程序博客网 时间:2024/06/05 19:09
While running LotusScript code, the following error message occurs:
"Could not create field %1"
What does this error mean?
Answer
This error is displayed when you try to assign an invalid array to a field. Examples of invalid arrays would be an array containing different data types, or an array that would exceed the storage capacity of the field.
A simple example code that generates this error would be as follows:
Sub Initialize
Dim sess As New notesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim arr(1) As Variant
Set db = sess.CurrentDatabase
Set doc = db.CreateDocument
arr(0) = ""
arr(1) = Datevalue("1 Jan 2004")
doc.NewField = arr
End Sub
Note that a different error is displayed if you use the ReplaceItemValue method of the NotesItem class, rather than the "dot" notation that treats the field as a property of the document. If you replace this line:
- doc.NewField = arr
in the example above with:
- Call doc.ReplaceItemValue("NewField", arr)
you see the error message:
- Notes error: NotesItem cannot be set to an array of mixed data types
In the case of an array that would exceed the capacity of the field, the error message when using ReplaceItemValue is
Notes error: Adding entry will cause text list to exceed 64K. Entry not added
- Lotus 错误 "Could not create field %1"
- could not autowire field 错误解决方式
- Could not autowire field错误总结
- Could not autowire field
- Could not autowire field
- SpringMVC 错误分析:@Autowired Could not autowire field
- SpringMVC 错误分析:@Autowired Could not autowire field
- SpringMVC 错误分析:@Autowired Could not autowire field
- SpringMVC 错误分析:@Autowired Could not autowire field
- Could not create JarEntryRevision
- could not create /tmp
- Could not create JarEntryRevision
- Could not create JarEntryRevision
- Could not create task or type of type: junit. 错误
- 关于FTP上传错误 553 Could not create file
- vsftpd的553 Could not create file 错误
- 【VSFTPD】vsFTPd的553 Could not create file 错误
- vsFTPd的553 Could not create file 错误
- 敏捷测试的方法和实践
- XMPP协议分析—具体篇
- Android 的获取当前时间 的各种情况(学习)
- 一分钟破解WPA/WPA2
- 敏捷测试的思考和新发展
- Lotus 错误 "Could not create field %1"
- Quartz.NET一个开源的作业调度框架
- Android使用ViewFlipper做页面切换,与手势滑动切换的使用
- 宏定义和内联函数的学习
- linux下各个命令的学习(1)
- 30分钟教你学会正则表达式
- C# 中的委托和事件
- Oracle10g的Flashback之Flashback Transaction Query
- matl