Intermittent featureLayer Error

853
0
07-28-2016 02:54 PM
TylerWaring
Occasional Contributor II


Greetings,

     I am experiencing an intermittent error in all of my applications that I am referencing featureLayers in. The problem is not persistent but the when it occurs it is very noticeable to the end user. Every once in a while I get a "Unable to complete operation" error from line 187 of init.js (the details of the error are listed below).  This error occurs thtoughout the use of the application whether panning and zooming or querying the feature layer. I use the following code to add the layer:

var arficaLayer = new FeatureLayer(url+"/1", {

          mode: FeatureLayer.MODE_SNAPSHOT,

          outFields: ["*"],

          id: "africa",

          autoGeneralize: true,

          definitionExpression: "1=1"

        });

        map.addLayer(arficaLayer);

I've tried different mode setting for the feature layer but to no avail. Any information on how I should be correctly adding this feature layer will be greatly appreciated.

Best regards, Tyler

init.js:89 Error: Unable to complete operation.(…)w @ init.js:89

(anonymous function) @ init.js:88

c @ init.js:103

d @ init.js:103

resolve.callback @ init.js:105

c @ init.js:104

d @ init.js:103

resolve.callback @ init.js:105

c @ init.js:104

d @ init.js:103

resolve.callback @ init.js:105

c @ init.js:104

d @ init.js:103

resolve.callback @ init.js:105

(anonymous function) @ init.js:92

h @ init.js:107

k @ init.js:107

resolve @ init.js:109

a @ init.js:108

h @ init.js:107

k @ init.js:107

resolve @ init.js:109

a @ init.js:108

h @ init.js:107

k @ init.js:107

resolve @ init.js:109

a @ init.js:108

h @ init.js:107

k @ init.js:107

resolve @ init.js:109

n @ init.js:138

e @ init.js:142

0 Kudos
0 Replies