Description
Not all of the available statistic types are valid for text fields. If you're using a text field, only MIN, MAX, COUNT, FIRST, LAST, and UNIQUE types are appropriate. The other statistic types are invalid.
Solution
Change the statistic type to a valid value