Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
This query giving invalid token count error.
what is the problem here??
I've been able to do this from the system log, as saved apex and via unit tests.
If you check the meta-xml for the apex class, what version are you on?
vignesh try like this,
select id,city__c,count(id) from country group by city__c;
still it is giving same error!!!
That syntax looks correct - I can run a similar query on contacts grouped by firstname without problem.
Can you post any more code?
I think u r running query on system log, here it works no problem.
But in apex code, it is not working..
thnx bob, I m using older version, 14, now with version 20 I m able to do this.
I've been able to do this from the system log, as saved apex and via unit tests.
If you check the meta-xml for the apex class, what version are you on?
All Answers
vignesh try like this,
select id,city__c,count(id) from country group by city__c;
still it is giving same error!!!
That syntax looks correct - I can run a similar query on contacts grouped by firstname without problem.
Can you post any more code?
I think u r running query on system log, here it works no problem.
But in apex code, it is not working..
I've been able to do this from the system log, as saved apex and via unit tests.
If you check the meta-xml for the apex class, what version are you on?
thnx bob, I m using older version, 14, now with version 20 I m able to do this.