brassier

ArcGISLocalFeatureLayer failure on updates

Discussion created by brassier on Nov 2, 2012
Latest reply on Nov 2, 2012 by brassier
Hello -

We have a product that currently leverages an online FeatureLayer.  This works both with the EditorWidget, and with us programmatically adding points/lines/polygons to the FeatureLayer.

We are making adjustments to allow the product to work both online and locally, but we're running into a problem.  When points/lines/polygons are added locally via the EditorWidget, it works just fine.  When multiple polygons are added to the local FeatureService programmatically, we get a very vague failure.  Using Fiddler it seems that the "applyEdits" requests are almost identical between our programmatic add and the EditorWidget add.  Any ideas why one would fail and the other wouldn't?  Any ideas how we can get a more informative failure result back?  (Note that our programmatic addition of points seems to be working fine).

Example failure response is below.  The "code" seems to change based on the session.
{
"addResults" : [{
   "success" : false,
   "error" : {
    "code" : 13561872,
    "description" : ""
   }
  }, {
   "success" : false,
   "error" : {
    "code" : 13561872,
    "description" : ""
   }
  }
],
"updateResults" : [],
"deleteResults" : []
}

Outcomes