Difference between revisions of "Error Messages/40622"

 
Line 1: Line 1:
= Error Message Examples  =
+
[[Category: Error messages]]
  
  An unnamed index and a self-index are both present in the result, which is not allowed.
+
== Error message examples ==
  
= Cause  =
+
:<code>''An unnamed index and a self-index are both present in the result, which is not allowed.''</code>
  
Analytica allows only one implicit index to define objects and results, and self-index is an implicit index. The result was self indexed and also had another implicit index which is not allowed.
+
== Cause  ==
  
A table defined as below would generate this error:<br>
+
Analytica allows only one implicit index to define objects and results, and [[self]]-index is an implicit index. The result was self indexed and also had another implicit index which is not allowed.
<code>Table(self)(1..5, 6..10)</code>
 
  
= Remedies  =
+
A [[table]] defined as below would generate this error:
 +
:<code>Table(self)(1..5, 6..10)</code>
 +
 
 +
== Remedies  ==
  
 
Create an explicit index and change the result to use the created index to solve this issue.
 
Create an explicit index and change the result to use the created index to solve this issue.
  
The above table definition can be corrected by introducing an index, IndexA:
+
The above table [[definition]] can be corrected by introducing an index, <code>IndexA</code>:
 
 
IndexA definition <br>
 
<code>Index IndexA := 1..2 </code>
 
  
Table definition <br>
+
:<code>Index IndexA := 1..2 </code>
<code>Table(IndexA)(1..5, 6..10)</code>
+
:<code>Table(IndexA)(1..5, 6..10)</code>
  
<br><comments />
+
==See Also==
 +
* [[Table]]
 +
* [[Implicit Dimensions]]
 +
* [[Self]]
 +
* [[Definition]]

Latest revision as of 22:30, 9 March 2016


Error message examples

An unnamed index and a self-index are both present in the result, which is not allowed.

Cause

Analytica allows only one implicit index to define objects and results, and self-index is an implicit index. The result was self indexed and also had another implicit index which is not allowed.

A table defined as below would generate this error:

Table(self)(1..5, 6..10)

Remedies

Create an explicit index and change the result to use the created index to solve this issue.

The above table definition can be corrected by introducing an index, IndexA:

Index IndexA := 1..2
Table(IndexA)(1..5, 6..10)

See Also

Comments


You are not allowed to post comments.