Error Message Types

Revision as of 01:38, 3 February 2016 by Bbecane (talk | contribs)


There are several types of error messages in Analytica. Many messages are designed to inform you that something in the model needs to be corrected; some messages indicate that Analytica cannot continue or complete your request. Each error message begins with its message type, one of warning, lexical, syntax, evaluation, system, and fatal errors. In general, Analytica allows you to continue working on your model unless it cannot proceed until a problem has been corrected. When you are editing a variable definition, you can request an error message by pressing Alt-Enter or by clicking the definition warning icon AppendixE 1.png

Warning

A warning indicates that there is a possible problem. Here is an example.

Warning.png

A warning is reported during result evaluation to inform you that continuing can yield unexpected results.

You can suppress evaluation warnings for all variables by disabling the Show result warnings preference (see Preferences dialog). When Show result warnings is unchecked, any warning conditions encountered during result evaluation is ignored. You can also suppress warnings during evaluation of a single expression with the IgnoreWarnings() function.

If an identifier in a module you are adding to a model has a name conflict with an identifier in the model, you see a warning similar to the following.

Warning2.png

Lexical error

A lexical error occurs when a component of an expression was expected and is missing or is invalid. For example, if you enter a number with an invalid number suffix, you might get a message similar to the following.

Lexical.png

Syntax error

A syntax error occurs when an expression contains a syntax mistake. Analytica often reports the mistake together with the fragment of the expression that contained the error. Here is an example.

Syntax.png

The following are two common syntax errors.

If you attempt to change the identifier for a variable, and the new identifier is assigned to another node, you see a message similar to the following.

Expecting "," Indicates a comma is missing, or there are too few parameters to a function.
Expecting ")" Indicates there are too many parameters to a function.

If you attempt to change the identifier for a variable, and the new identifier is assigned to another node, you see a message similar to the following.

Syntax2.png

Evaluation error

An evaluation error occurs when there is a problem while evaluating a variable, user-defined function, or system function. You are asked if you want to edit the definition of the variable currently being evaluated.

Evaluation.png

If a system function expects a specific kind of argument, an error message similar to the following is displayed.

Evaluation2.png

This message indicates that an argument passed to the function is of a different type or cannot be handled by that function. You might need to redefine a variable being used as an argument to the function, or change an expression being passed as an argument.

Invalid number

If a calculation tries to perform a division by zero, it displays a warning with an option to continue calculating. Three possible error codes can be returned as a result of an invalid calculation.

Code Meaning
INF Infinity, such as 1/0.
NAN Not A Number. Results from invalid functions such as Sqrt(-1), or 0/0.
NULL

(blank)

Displays as a blank cell if the result is a table, or shows the Compute button otherwise.

Results from certain functions, such as SubIndex(), when a result is not available.

You can test for these results in an expression using X = INF, Isnan(X), or X = NULL. See also Null.

System error

If you see this message type, please email us or click here to report the error.

Out of memory error

Indicates that Analytica has used up all available memory and cannot complete the current command. If this occurs, first save your model. Before attempting to evaluate again, close some windows, use a smaller sample size, or expand the memory available to Analytica (see Memory Usage).


Comments


You are not allowed to post comments.