Open bunk3m opened 6 years ago
I think the problem is that the field set in the "Main group" dropdown doesn't have the 'Group' checkbox checked? It probably shouldn't be possible to create a query like that, I ran into the same thing when creating a report earlier.
A gui created report is failing with the mysql error 1111 invalid group function
Issue
The report query is failing is to identify the number of meetings completed in the past week for each user. A similar task report has the same error.
Both queries were created in the gui and have a mysql error 1111 for invalid group function.
Expected Behavior
Reports created and run from the GUI should run without error.
Actual Behavior
Report gives an error in the log. Error is as follows:
Query Failed: SELECT COUNT(
meetings.name) AS 'Number_of_meetings' FROM meetings WHERE ( COUNT(
meetings.name) IS NOT NULL AND (
meetings.date_start BETWEEN "2018-04-02 00:00:00" AND "2018-04-09 00:00:00" AND
meetings.status = 'Held' ) AND meetings.deleted = 0 ): MySQL error 1111: Invalid use of group function
Possible Fix
unknown
Steps to Reproduce
Report "Meetings since last week"
Context
Error appears each time you select the dashboard tab and the report is run.
Your Environment