When I add a map service to my map as an ArcGISDynamicMapServiceLayer it works as I expect. When I add the same map service as a FeatureLayer it works at larger scales but at smaller scales some of the features render but then one of the GET requests is met with this:
{"error":{"code":400,"message":"Unable to complete operation.","details":[]}}
How do I troubleshoot this? It's not like I'm overwhelming the server with GET requests at the full extent (only 32 features in total) so why does this work at large scales but not small scales?
The only change in my code between dynamic layer and feature layer are the addition of "/0" to the service url in the layer constructor, and the addition of "mode: esri.layers.FeatureLayer.MODE_ONDEMAND" to the parameter list.
Details:
JSAPI 3.4
Firefox 11.0 (Old, I know. It's out of my control!)
ArcGIS Server 10.1
The map service contains 32 point features in web merc. aux. sphere (same projection as map to which it is added).
Thanks,
Ryan