Select to view content in your preferred language

GetFeatureCountRequest instantly timing out to return -1

714
0
12-03-2010 12:26 PM
DavidNixon1
New Contributor
I am having an issue when attempting to pull data from our map service in 9.3.1.

I use the MobileService.GetFeatureCountAsync to determine how many features in a certain layer need to be pulled into a mobile cache.  This call has started returning -1 with a timeout error.  I can find no indication on what might cause this.  The first time I run the call it seems to work perfectly but randomly it will just return -1's with the timeout error.

Similarly when using the MobileService.GetDataAsync call with a group of layers I encounter a timeout issue on a particularly big layer.  This wouldn't be surprising except for the fact that the timeout occurs almost instantly.  I also worked on a piece to divide the geometry when a timeout occurs to provide a smaller extent to pull data into.  This recursive call get called indefinately, with timeouts on each call, until the divided extent is too small to run an intersect query on.  At this point the app crashes.

I have been trying to solve this issue for some time and can come up with nothing.  If anyone has any ideas as to why the GetFeatureCountAsync and GetDataAsync calls would consistently have near instant timeout exceptions it would help me out a lot.
0 Kudos
0 Replies