CDISP0171E

The subscription expression expects a literal, but the following expression is specified instead: expression.

The literals that are used in a subscription expression must be compile time values, and the type must be int64/rstring/float64.
Ensure that the subscription expression is correct.