I'm not familiar with that specific error, but that could be an indirect way of saying "type mismatch." Are you using Min, Max or Sum as your grouping? Those require a numeric value so probably the only values you'd be able to use with Formula (Text) are Group and Count.