javascript feature layer render issue

1050
5
11-07-2011 07:52 AM
JaredAllen
New Contributor
i'm adding a feature layer service via the js api. i'm getting the following errors/warnings...

Unexpected value NaN parsing x attribute.
Unexpected value NaN parsing y attribute.
Unexpected value matrix(1.00000000,0.00000000,0.00000000,1.00000000,NaN,NaN) parsing transform attribute.

the features from this service are being rendered as expected, with the addition of a stacked set of these features in the far upper-left of the map view port too!

the following is the code which i'm using to add the feature service layers...

var serviceRequestLayerURL = "http://arcgisserver.northwind-inc.com/ArcGIS/rest/services/itd_service/MapServer/0";
var serviceRequestmobileLayerURL = "http://arcgisserver.northwind-inc.com/ArcGIS/rest/services/itd_service/MapServer/0";

var serviceRequestLayer = new esri.layers.FeatureLayer(isBorwser ? serviceRequestLayerURL : serviceRequestmobileLayerURL, {
                mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
                outFields: ["*"],
                id: serviceRequestLayerId,
                displayOnPan: true
            });
            map.addLayer(serviceRequestLayer);

            var serviceRequestCommentsLayer = new esri.layers.FeatureLayer(serviceRequestCommentsLayerURL, {
                mode: esri.layers.FeatureLayer.MODE_SELECTION,
                outFields: ["*"],
                id: serviceRequestCommentsLayerId,
                displayOnPan: false
            });
            map.addLayer(serviceRequestCommentsLayer);
0 Kudos
5 Replies
Charles__Jamie_Phillips
New Contributor III
I just ran into the same issue.
0 Kudos
JasonFoster
New Contributor
Did anyone ever figure out what is happening. It occurs two or three times out of four for me.
0 Kudos
JianfengZhao
New Contributor
It occurred to me a number of times. It usually happens at the initial call of the map.setExtent in my application. Did anyone figure out what is happening or how to debug it?
0 Kudos
SunilPalkar
Occasional Contributor
I am getting an same error..

Any idea?? waiting for reply from senior members  : |

It occurred to me a number of times. It usually happens at the initial call of the map.setExtent in my application. Did anyone figure out what is happening or how to debug it?
0 Kudos
SunilPalkar
Occasional Contributor
Hello All,

My issue was resolved.

Reason : I have few blank records + special character in database..

After cleaning all everything is up and running..

Esri forums are simply great... like support !! : ):)
0 Kudos