The variable does not support the substring operator.
Change the program so that it does not use the substring operator on the variable.