I am attempting to use the find task to search an entire service for a value. I search 4 fields from 22 layers (3 of which are group layers) using the contains parameter = true. When I send a request that I know is going to return a large number of results (around 1000) it times out. If I narrow that search it does not time out. And sometimes the larger request works. I set my timeout to 180 seconds and my max returned records to 2000 for the service.
In a browser through the REST services folder running on the ArcGIS Server host machine I get the more detailed error message indicating the request timed out. [h=2]Request timed out.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.