Error Messages/40259

< Error Messages
Revision as of 00:13, 12 February 2009 by Lchrisman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Examples:

In call to function Sum, the second parameter, I, is not a valid index.

General form:

In call to function %1%, the %2% parameter, %3%, is not a valid index.

What caused it?

The indicated parameter does not identify a valid index.

For a variable to be valid as an index, it must either evaluate to a list of elements, or it must have a self-index.

A self-index is introduced when the domain attribute is set to a list, list-of-numbers or index domain, or when the variable is defined as a self-indexed table. A self-index is also introduced when the variable evaluates to a result that contains an implicit dimension, causing the implicit dimension to be promoted to be a self-index.

Note that the variable identified by «I» does not have to be an index object (i.e., it does not have to be a parallelogram on an influence diagram).

How to fix it

To diagnose this, view the result of your variable, «I». If it has a self-index, in most cases you will see its own identifier listed among the pivot controls for its result table. Or, if it a list, it'll display as a list of elements with no named pivoter. If it isn't there, then view the domain attribute for the same variable. If that is not set to a list, then you've found the reason your variable is not a valid index.

If your variable, «I», is a 1-D array, and those values are what you want to use as your index values, it may mean you need to wrap the definition inside an IndexValue function call.

Work arounds

See Also


You are not allowed to post comments.

Comments
<comments />