Error 535 - Dynamic string variable expected

Dynamic string variable expected - The syntax of this statement or function requires a dynamic string variable here.  Substitution with another data type is not possible. See the specific statement definition for more information.