Error 21055

Message

Possible error messages:

Without Resource Bundle (default)
  • The query with a having clause should also have a group by clause
With Resource Bundle
  • the query with a having clause should also have a group by clause
Domain Persistence.PersistenceException
Number 21055
Label QUERY_SHOULD_HAVE_GROUP_BY_CLAUSE
Applicable Platform(s) iOS, Android, BlackBerry, Windows Mobile

Cause

The specified query has a HAVING clause but no GROUP BY clause.

Action

Use the Query.groupBy method to add a groupBy clause.