AnsweredAssumed Answered

FindTask returns "Object reference not set to an instance of an object"

Question asked by mrcoulson on Sep 5, 2012
Latest reply on Sep 20, 2012 by geos_rfleet
Hello.  We have a project for which this example seems to be an excellent starting place:

So far, we have made revisions in an attempt to include our data.  This is at  Instead of the stuff in the example, we are trying to search for a field in our data called RECNUM.  Our data are in this service:

We currently are getting this error when trying to execute a search:{"error":{"code":500,"message":"Object reference not set to an instance of an object.","details":[]}});

I'm totally unsure of what is happening.  When I change the findParams.layerIds from 1 to 0, I just get empty data instead of an error result.{"results":[]});

findParams.layerIds = [1]; // 0 returns empty result.  1 returns Object reference not set to an instance of an object. findParams.searchFields = ["RECNUM"];

I'm kind of lost on how to proceed, so I'll be deeply grateful for any assistance.  Thanks!