0

I apologize if this is a duplicate issue, but I couldn't find a similar issue. I'm new here.

I have a custom object in Salesforce that cannot be queried. It always times out. It used to do that sometimes, but then it would work. Now, I cannot query it no matter what I do. I tried:

  • Select Id From Object__c (Times out)
  • Select Id From Object__c Limit 5 (Times out)
  • Select Id From Other_Object__c (This works)

Any help is appreciated. Thank you.

Daniel Ballinger
  • 13,187
  • 11
  • 69
  • 96
user3184786
  • 501
  • 1
  • 4
  • 7
  • What are you using to execute the SOQL query? How many Object__c records are there? – Daniel Ballinger Mar 04 '15 at 00:11
  • I tried using the developer console, the Salesforce workbench, and Apex code. There are about 220,000 objects. – user3184786 Mar 05 '15 at 19:05
  • What is the explicit exception you are getting from the developer console? Without an explicit where clause you may be running into selectivity issues. See [Query & Search - Optimization Cheat Sheet](http://help.salesforce.com/help/pdfs/en/salesforce_query_search_optimization_developer_cheatsheet.pdf) – Daniel Ballinger Mar 05 '15 at 21:15

0 Answers0