Error Messages/41158
Message text
In the call to MdArrayToTable(..), the object Some_variable identified in the second element of «L» is not a valid index.
Causes
The third parameter of MdArrayToTable, «L», should contain N index identifies followed by K value columns (usually K is 1, unless the «valueIndex» parameter is used). Each of the first N elements of «L» must identify a valid index, normally an index of «A». This error occurs if the object identified by the indicated element is not a valid index. For example, it might not be a variable-type object, or it might not evaluate to a 1-D vector of values as is required of an index.
Sometimes this error occurs when you try to use an index of identifiers for «L», but forget to set the <metaOnly flag. If you define an object as a list of identifiers, when passed to the third parameter of «L», it will be evaluated, so that the value actually passed to MdArrayToTable is not the list of identifiers, but rather the array of values obtained from the values of those identifiers. The remedy is to set the metaOnly attribute for the index to 1.
Enable comment auto-refresher