Below is a list of non "user-defined errors" with a description. If you've dealt with these errors before, please add your best practices on troubleshooting some of these errors.
For additional information on LotusScript, please review the LotusScript Training videos from Lotus Technical Support. These videos offer a great introduction to building and debugging agents using Domino Designer. You may find them using the following link:
http://www.ibm.com/support/docview.wss?rs=463&uid=swg27010056 Error 3: RETURN without GOSUB Error 5: Illegal function call Error 6: Overflow Error 7: Out of memory Error 9: Subscript out of range Error 11: Division by zero Error 13: Type mismatch Error 14: Out of string space Error 19: No RESUMEThe above error might be thrown in the following scenario. If an error is thrown, execution will move to the ErrHandler block. If Err is not 11, then it will move to the Case Else. In this situation, execution will actually continue through the error handling block, down to the End Sub.
Sub Initialize
On Error Goto ErrHandler
' Here is some code which might throw an error
Done:
Exit Sub
ErrHandler:
Select Case Err
Case 11
Resume Next
Case Else
End Select
End Sub
Instead, use code similar to the following. Note the extra line beneath the "Case Else" test, which handles all otherwise-handled exceptions. This line tells LotusScript what to do after completing the error handling.
Sub Initialize
On Error Goto ErrHandler
' Here is some code which might throw an error
Done:
Exit Sub
ErrHandler:
Select Case Err
Case 11
Resume Next
Case Else
Resume Done
End Select
End Sub
Error 20: RESUME without error The above error might be thrown in the following scenario. If no error is thrown, the code will eventually execute the "Resume Done" line even though no error has occurred.
Sub Initialize
On Error Goto ErrHandler
' Here is some code which might throw an error
Done:
ErrHandler:
Select Case Err
Case 11
Resume Next
Case Else
Resume Done
End Select
End Sub
Instead, use code similar to the following. Note the extra line beneath the "Done:" label exiting the subroutine, which bypasses the ErrHandler block.
Sub Initialize
On Error Goto ErrHandler
' Here is some code which might throw an error
Done:
Exit Sub
ErrHandler:
Select Case Err
Case 11
Resume Next
Case Else
Resume Done
End Select
End Sub
Error 28: Out of stack space Error 35: Sub, function or property not defined
Error 48: Error in loading DLL Error 49: Bad DLL calling convention Error 51: Internal error[%ld-%ld] Error 52: Bad file name or number Error 53: File not found
Error 54: Bad file mode
Error 55: File already open
Error 57: Device I/O error
Error 58: File already exists
Error 59: Bad record length
Error 61: Disk full
Error 62: Input past end of file
Error 63: Bad record number
Error 64: Bad file name
Error 67: Too many files
Error 68: Device unavailable
Error 70: Permission denied
Error 71: Disk not ready
Error 74 : Cannot rename with different drive
Error 75: Path/file access error
Error 76: Path not found
Error 91: Object variable not set
Error 92: FOR loop not initialized
Error 93: Invalid pattern string
Error 94: Invalid use of null
Error 95: Cannot destroy active instance
Error 96: File not writable
Error 97: File not readable
Error 98: Illegal file number
Error 99: File not open
Error 100: Conflicting modes supplied
Error 101: Unable to open file
Error 102: Illegal operation for file mode
Error 103: Data too big for record
Error 104: Bad attribute
Error 105: Cannot set attribute for file
Error 120: List item does not exist
Error 150: Cannot find module: %s
Error 151: Cannot find external name: %s
Error 152: Type mismatch on external name: %s
Error 153: Module already loaded
Error 154: Module not found
Error 155: Invalid module file
Error 156: Compiler error
Error 158: ADT error: Control procedure missing
Error 159: Named product object does not exist
Error 160: Unknown class of product object returned
Error 161: ADT error: Object handle changed
Error 162: Bad argument to external function
Error 163: Unsupported argument type to external function
Error 164: Unsupported return type for external function
Error 165: External function not found
Error 166: Event handler not attached
Error 167: Module in use
Error 168: Too many calls into module
Error 169: LISTTAG argument not a list element
Error 170: Illegal REDIM of fixed array
Error 171: Array size exceeds maximum limit
Error 172: Illegal LIKE pattern
Error 173: Argument out of range
Error 174: Illegal circular USE: %s
Error 175: Duplicate PUBLIC name %s in USE module %s
Error 176: Expression out of range
Error 177: Invalid ^ operator operands
Error 178: Error loading USE or USELSX module: %s
Error 179: Underflow
Error 180: Operation not supported on this platform
Error 181: Type suffix does not match actual data type
Error 182: Instance member %s does not exist
Error 183: Variant does not contain an object
Error 18 4: Var
iant does not contain a container
Error 185: Wrong number of arguments for method
Error 186: Name used as a method is not a method
Error 187: Illegal use of SUB
Error 188: Illegal use of FUNCTION
Error 189: I ll egal use of PROPERTY
Error 190: Illegal u se of read-only PROPERTY
Error 191: List reference must contain exactly one subscript
Error 192: ISELEMENT argument is not a list
Error 193: Illegal DELETE
Error 194: Not a product object
Error 195: Event does not exist
Error 196: Event handler argument type mismatch
Error 197: Event handler argument count mismatch
Error 198: Not a PUBLIC Member
Error 199: Missing argument
Error 200: Attempt to access uninitialized dynamic array
Error 201: Operation is disallowed in this session
Error 202: SET required on class instance assignment
Error 203: Invalid collection item
Error 204: Wrong number of collection indices
Error 205: Not a collection object
Error 2 06: Collection item not found
Error 207: Automation object error
Error 208: Cannot create automation object
Error 209: Automation object file name error
Error 210: Automation object member not found
Error 211: Wrong number of arguments for automation object
Error 212: Automation object argument type mismatch
Error 213: %s: %s
Error 214: Forall container invalid or modified
Error 215: Out of system stack space
Error 216: Illegal REDIM
Error 217: Error creating product object
Error 218: Error accessing product object property
Error 219: Error accessing product object method
Error 220: Error accessing product object
Error 221: Error in EVALUATE macro
Error 222: Event handler return type mismatch
Error 223: Event handler procedure type mismatch
Error 224: Wrong number of arguments for PROPERTY
Error 225: Illegal use of MEMBER
Error 226: PROPERTY SET not defined
Error 227: PROPERTY GET not defined
Error 228: String too large
Error 229: Variable is read-only
Error 230: Unknown class instance
Error 231: Cannot assign into collection item
Error 232: Wrong number of array subscripts
Error 233: Operation not supported in this version
Error 234: Invalid MIME Charset
Error 235: Lock ID used has not been created.
Error 236: Deadlock detected.
Error 237: Thread attempted to unlock a lock it does not own.
Error 238: Maximum number of semaphores permitted reached.
Error 239: Invalid Byte Order Mark (BOM) Found in file
Error 249: LSSERVER object does not exist
Error 300: LS2J
Error 301: LS2J Error: Cannot convert Java Object array to LotusScript array.
Error 302: LS2J Error: Cannot get value of a Java field.
Error 303: LS2J Error: Cannot set Java array to LotusScript single value.
Error 304: LS2J Error: Java constructor failed to execute.
Error 305: LS2J Error: Expression out of range.
Error 306: LS2 J Error: GetValue needs javaObject parameter to get value of an instance Java field.
Error 307: LS2J Error: Ill egal signature.
Error 308: LS2J Error: Illegal string.
Error 309: LS2J Error: Internal Error.
Error 310: LS2J Error: Invoke needs JavaObject parameter to call an instance method.
Error 311: LS2J Error: Java Virtual Machine failed to start.
Error 312: LS2J Error: No such field.
Error 313: LS2J Error: No such method.
Error 314: LS2J Error: Null Java object.
Error 315: LS2J Error: Parameter mism atch calling Java method.
Error 316: LS2J Error: SetValue needs JavaObject parameter to set value of an instance field.
Error 317: LS2J Error: Signature return type should be
Error 318: LS2J Error: Threw
Error 319: LS2J Error: Type mismatch.
Error 320: LS2J Error: Java security prohibits invoking method:
Error 321: LS2J Error: Java security prohibits access to property:
Error 322: LS2J Error: Object class is not
Error 323: LS2J