findtask query providing weird results.. Feature ID: -1

Discussion created by agray7501 on Oct 14, 2010
Latest reply on May 12, 2011 by hzhu
I have been using the sample findtask query to a datagrid

And incorporated it into my js online map and its returning weird results..

using the google javascript console... I get this message when I click on the search button{"error":{"code":500,"message":"Object reference not set to an instance of an object.","details":[]}});

I've asked this question on another forum and they have been very helpful in locating the error..

Running the find query from within the feature definition, I was shown, that I get a result but its returning a "Feature ID: -1".. That seems to be the problem.. Which still doesn't help me understand what  the problem actually is..

Hoping someone can help explain to me more about what is going on and what I have to do to fix the problem.. I am going to see about getting the mapservice recreated and see if that fixes the problem. I tried the find query on a different mapservice in our organization and got the same results as well..