Group layers in a map server service filtered by Unique Values may fail with the following error, "Unique values could not be determined for the selected field."
Add the features individually, by index layer, instead of the map server.
For example, {mapservername}/MapServer/ does not work for filtering on a text field, but {mapservername}/MapServer/0 works.