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
Jason in ChinaJason in China 

When test in console: get communication failure

Hi,

 

When I tested some batch apex, I continual getting the "salesforce response to EXEC to /_ui/common/apex/debug/apexcsiapi was:0, communication failure" error message.

 

is there anyone had facing the same issue?

 

thanks,

Sonam_SFDCSonam_SFDC

Hi Jason,

I once encoutered a similar issue when I was executing queries against large volume of data.

Please check for the following in your Batch Apex Code:
1)Modify your query by removing the negative filters in the query for e.g. : 'Email != null', 'Email != ''', etc. as they actually add unneeded overhead.
2)Go through below mentioned link to make your query more efficient:
http://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_SOQL_VLSQ.htm

Hope this info helps!