using javascript api 3.2 , code below sometimes created newfeature saves perfectly sometimes does not save feature its strange, arcgis server logs: Error while adding a Feature/ Object Layer/Table: operationsPolygonLayer .browser debugging error description:addResults: [{success:false, error:{code:1017, description:Internal error during object insert.}}]
function init() {
map = new esri.Map("map");
//Editing on this layer
operationsPolygonLayer = new esri.layers.FeatureLayer("http://xyz/arcgis/rest/services/Kashfeaedit/FeatureServer/1", { mode: esri.layers.FeatureLayer.MODE_SELECTION,outFields: ["*"] });
dojo.connect(map, "onLayersAddResult", addtomap);
map.addLayers([operationsPolygonLayer]);
Drawtoolbar = new esri.toolbars.Draw(map);
map.infoWindow.resize(400, 600);
}
function addToMap(evt) {
Drawtoolbar.deactivate();
var template = operationsPolygonLayer .types[0].templates[0];
var attributes = dojo.mixin({},template.prototype.attributes);
var newGraphic = new esri.Graphic(evt, null, operationPolygonLayerAttributes);
operationsPolygonLayer.applyEdits([newGraphic], null, null);
basemaplocaldynamic.refresh();
}
Any idea higly appriciated.