LotusScript, Formula and agents
LotusScript and Formula errors, Java agents and the Agent Manager.
Use the arrow keys and Enter, or click a result to open it.
Object variable not setLotusScript tried to use an object that was never set. Usually it's Nothing because a lookup didn't find anything.Type mismatchCode tried to use a value as the wrong data type, for example text where a number or date was expected.Note item not foundCode or a formula needed a field (item) that isn't on the document.Execution time limit exceeded by AgentA scheduled or server agent ran longer than the server allows, so Agent Manager stopped it.Subscript out of rangeLotusScript tried to read or write an array element using an index outside the array's bounds.Variant does not contain an objectLotusScript used a Variant as if it held an object (calling a method or property on it), but it actually holds something else, such as…Variant does not contain a containerLotusScript expected an array or list (a container) in a Variant, but the Variant holds a single value or nothing at all.Division by zeroA LotusScript calculation divided a number by zero, which can't be done.OverflowA value is too large (or too small) for the data type of the variable it is being stored in.Illegal function callA LotusScript function or statement was called with an argument it can't accept, such as an invalid value or one out of range.Out of stack spaceLotusScript ran out of stack memory, almost always because a sub or function keeps calling itself without stopping.No RESUMEAn On Error GoTo handler ran to the end of the sub or function without a Resume statement, so LotusScript doesn't know where to continue.Variable not declared: [name]The module uses Option Declare (or Option Explicit) and a variable is used without being declared with Dim.Not a sub or function name: [name]The code calls a sub or function that LotusScript can't find in scope.Class or type name not found: [name]A variable is declared as a class or type that LotusScript doesn't know about in this module.Instance member [member] does not existThe code calls a property or method that doesn't exist on the object it is working with at run time.Wrong number of arguments for: [name]A sub, function or method is called with more or fewer arguments than it is defined to take.Unexpected: [token]; Expected: [token]The LotusScript compiler found something it didn't expect at that point in the code, so the syntax is wrong.Error loading USE or USELSX module: [module]A design element tried to load a script library (or LSX) named in a Use or UseLSX statement, but it couldn't be loaded.Type mismatch on external name: [name]Code was compiled against an older version of a script library and the library has since changed, so the saved compiled code no longer…Duplicate PUBLIC name [name] in USE module [module]Two script libraries loaded by the same code both define a public sub, function, class or variable with the same name.Illegal circular USE: [module]Script libraries refer to each other in a loop (library A uses B and B uses A), which LotusScript doesn't allow.Operation is disallowed in this sessionThe code tried to do something not allowed in the context it is running in, usually a restricted operation or a UI action in a background…AMgr: Agent '[agent]' in '[database]' does not have proper execution access, cannot be runAgent Manager won't run the agent because the agent's signer (or the run-on-behalf-of user) isn't allowed to run that type of agent on this…Invalid universal idThe code asked for a document by its Universal ID, but no document with that UNID exists in the database, or the UNID text is invalid.Database [server]!![database] has not been opened yetThe code is using a NotesDatabase object that exists but was never successfully opened.Cannot remove NotesDocument when instantiated by NotesUIDocumentCode tried to delete the back-end document that is currently open in the user interface.Cannot create automation objectCreateObject couldn't start the requested COM/OLE application or object, such as Excel or Word.Document command is not availableAn @Command or UI action was run in a context where that command can't be used, such as when no document is open or selected.Incorrect data type for operator or @Function: Text expectedA formula passed a value of the wrong type to an operator or @function, for example a number where text was needed.No main or selected expression in formulaThe formula doesn't end in an expression that returns a value, or a view selection formula has no SELECT statement.java.lang.OutOfMemoryError: Java heap spaceA Java agent, XPage or Java code on the server or client ran out of Java heap memory.NotesException: Object has been removed or recycledJava code used a Domino object after it, or its parent object, had been recycled, so the underlying C object no longer exists.NotesException: Could not get IOR from Domino ServerA remote Java program couldn't get the connection details (IOR) from the Domino server, so it couldn't open a session.Path/File access errorLotusScript couldn't open, create or delete a file or folder at the path given, usually because of permissions or a locked file.Error in loading DLLA Declare statement points to an external library (DLL) that couldn't be found or loaded.Error creating product objectLotusScript could not create one of the Notes objects your code asked for, usually because it is not available where the code is running.Error accessing product object methodA call to a method on a Notes object failed inside Notes itself, so LotusScript returns this general error instead of a specific one.List item does not existThe code read a list element using a tag (key) that has not been added to the list.Attempt to access an uninitialized dynamic arrayThe code used a dynamic array that was declared but never given a size with ReDim.User-defined errorThe code raised an error with an error number that has no built-in message, so LotusScript has no text to show.Unsupported trigger and search in the background or embedded agentThe agent's trigger or document target is one that only works when a user runs it from the Notes client, not in the background.DXL importer operation failedThe DXL importer could not import the XML, but this message only says that it failed, not why.java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.pathJava could not load the Notes native library that the local Notes Java classes need.Could not execute @db functionAn @DbLookup or @DbColumn call could not run, so the formula returned this error instead of a value.The formula has exceeded the maximum allowable memory usageA formula built more data in memory than Notes allows for one formula, so it stopped.Invalid key value typeThe key passed to a view lookup method is a type the method does not accept.Cannot convert text to a numberNotes expected a number but got text, either from the user or inside a formula.Cannot execute the specified commandA button, action, hotspot or toolbar item ran an @Command that does not work in the current context.Only ENVIRONMENT, DEFAULT, or FIELD can be used as a modifier to :=An assignment in the formula starts with a word that is not allowed before :=.Inappropriate unary use of an operatorAn operator in the formula is missing one of the values it needs on either side.
Need a hand with this?
Paste your exact message into What's That Error? for a plain-English explanation, or get in touch. I've been supporting Domino and Notes for 28 years.
The errors, causes and fixes on this site are carefully researched, drawing on HCL documentation and 28 years of hands-on Domino and Notes experience. Every environment is different, though, and a solution that works in one may not be right for yours. Exact wording can also vary between Domino and Notes versions.
This information is general guidance only and is provided without warranty of any kind. Always back up your data and test changes on a non-production system first. To the extent permitted by law, Bruinsma Services Pty Ltd accepts no responsibility or liability for any loss, damage, downtime or other consequence arising from use of this information. For advice specific to your environment, please contact me.