But when I tell it to "Dismiss All" it returns what I am looking for and from then on all queries seem to be working fine. I have attached the code to this post. the one thing I have noticed when I debug it is that the "where" value is null even though there is a value there.
Error is on line 32 var mp:Multipoint = new Multipoint([],myGraphic.geometry.spatialReference); the variable mp is not being used in rest of the code. Runtime error will not be thrown if this line is commented out.