Find task on table layer in AGSDynamicMapService

Discussion created by rmartin4 on Sep 22, 2011
Latest reply on Sep 26, 2011 by njarecha-esristaff

I am trying to execute a find task on a table layer in an AGSDynamicMapService. I know the layer is running properly because I can query it without issue. When I try to run the find task, however, I get this error:

Error: Error Domain=NSCocoaErrorDomain Code=400 "Unable to complete  operation." UserInfo=0x6371fb0 {NSLocalizedFailureReason=Error, NSURL=[theURL]/MapServer/find?returnGeometry=false&contains=true&layers=180&searchFields=NAME_T&searchText=[theSearchText]&f=json, NSLocalizedDescription=Unable to complete  operation.}

I tried pasting that URL into my browser and I got Error 400: Unable to complete operation, but couldn't find any more info in the server documentation. Does anyone know what might be causing this? Is there something that has to be enabled when the service is published?

Thank you,