function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shekhar S 18Shekhar S 18 

Error in developer console query editor

INVALID QUERY
The query has to start with 'FIND' or 'SELECT'.
How to solve this problem
PriyaPriya (Salesforce Developers) 

Hi Shekhar,

Kindly let us know what are you trying to do and also provide the query you are trying to execute. 

Regards,

Priya Ranjan

Shekhar S 18Shekhar S 18
I want to write SOQL Query in developer console
User-added image
Ashish Singh SFDCAshish Singh SFDC
Hi Shekhar,

You need to remove the line break from your Query.

So instead of 
Select
 Name
 From 
College__c

Do this:
Select Name From College__c

Thanks,
​​​​​​​Ashish Singh.
Suraj Tripathi 47Suraj Tripathi 47

use this

Select Name From College__c

you are giving too much space that's why it is showing error.

please mark it as the Best Answer

Pratik ShendePratik Shende
['FIND\''+ searchstr1 +'\' IN ALL FEILDS Returning Account(Id,Name,type),Contact(name,email),Opportunity(name,)'];


I have an error ......(The query Start From FIND OR SEECT)