Hi Sumitk, The error for your SOQL query is because, you are grouping both Krow__Account__r.Name and Krow__Account__c without aggregating. You must use a GROUP BY clause if your query uses a LIMIT clause and an "aggregated" function. Since you are not aggregating (SUM/COUNT/MIN/MAX) anything, this error is occuring.
To solve- Either aggregate some field and group them OR remove the GROUP BY clause.
Hi Sumitk, The error for your SOQL query is because, you are grouping both Krow__Account__r.Name and Krow__Account__c without aggregating. You must use a GROUP BY clause if your query uses a LIMIT clause and an "aggregated" function. Since you are not aggregating (SUM/COUNT/MIN/MAX) anything, this error is occuring.
To solve- Either aggregate some field and group them OR remove the GROUP BY clause.
The error for your SOQL query is because, you are grouping both Krow__Account__r.Name and Krow__Account__c without aggregating.
You must use a GROUP BY clause if your query uses a LIMIT clause and an "aggregated" function.
Since you are not aggregating (SUM/COUNT/MIN/MAX) anything, this error is occuring.
To solve- Either aggregate some field and group them OR remove the GROUP BY clause.
Reference - https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_group_by_considerations.htm
Hope this helps!
All Answers
The error for your SOQL query is because, you are grouping both Krow__Account__r.Name and Krow__Account__c without aggregating.
You must use a GROUP BY clause if your query uses a LIMIT clause and an "aggregated" function.
Since you are not aggregating (SUM/COUNT/MIN/MAX) anything, this error is occuring.
To solve- Either aggregate some field and group them OR remove the GROUP BY clause.
Reference - https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_group_by_considerations.htm
Hope this helps!