ApplyEdits(add) unsuccessful with Non-Spatial Table

2685
1
09-01-2015 06:32 AM
AlexMagruder
New Contributor III

I'm using a FeatureLayer created from a featureCollectionObject that is based on a non-spatial table. The featureLayer loads correctly and I can use it in my webApp. I can successfully perform applyEdits that update or delete features on the featureLayer. But it is unsuccessful when I try to perform an applyEdits that adds features. The applyEdits(add) result object has a success: true property and a poplulated objectId property, but the graphic is not added to the featureLayer. The featureLayer's _nextId property is a valid number. Using the same graphic on the applyEdits(add) rest service successfully adds the graphic to the service.

TLDR:

  • FeatureLayer is created from a featureCollection based on a non-spatial table
  • FeatureLayer can update and delete graphics using the applyEdits method
  • Adding a feature using the applyEdits method returns with a success true result but the graphic is not added
  • I can successfully add the same graphic to the rest service using applyEdits
0 Kudos
1 Reply
BjornSvensson
Esri Regular Contributor

Alex Magruder​ - that might be a JSAPI bug.  Any chance you have, or could create, a small repro case on jsbin/jsfiddle (or here)?

0 Kudos