• did the statement you were trying to tune have a temp (#) table in it?

    I have seen the advisor error when trying to tune a procedure using one.