Indicator variables must be of type a_sql_len. You have used a variable of a different type as an indicator variable.