Error Messages/41289
Error text
The parameter passed to the «resultIndex» parameter of function SplitText is not a valid index.
Cause
The SplitText function allows an optional parameter, «resultIndex» to be specified. When it is specified, an index must be provided, and the result will be indexed by the indicated index. This error occurs when the parameter passed is not a valid index.
Remedy
Suppose you've specified the identifier of another variable in the «resultIndex» parameter, say it is J
. To help debug, you can explore whether it is an index by seeing what IndexValue(J)
returns. If it is a valid index, this should return a 1-D array of elements. If IndexValue results in an error about it not being an index, then you are on your way to debugging it.
If the index value is supposed to come from the variable's domain, then check its domain attribute in detail. Otherwise, if it is supposed to come from its definition, examine its mid value. If its mid-value turns out to be multi-dimensional, or 1-D but dimensioned by a different variable, you may have found the problem. If you have a 1-D array indexed by something else, you may need to use CopyIndex in the would-be index's definition.
Enable comment auto-refresher