CDISP0036E

The expression that is used to subscript a stream history reference must be an integer that is a compile time value, but the following expression was found: subscript expression.

The expression that is used to subscript a stream history reference must be a compile time integer value.
Ensure that the expression is a compile time value.