Thank you bbjorn, yes, I have versioned data. Your answer was helpful!
I have another question related with with issue. The feature was added sucessfully!. I can query and update teh feature with no trouble at all. The problem comes when I try to delete the feature. I've tried to use the applyEdits method of the FeatureLayer using an array of OBJECIDs ex... [24, 89] featLyr.applyEdits(null, null, [24, 89] ,new AsyncResponder(onResult, onFault)); but it doesn't work.. it always says invalid parameters.... So reading the documentation and forums I found a solution using a FeatureLayerTask... featLyr.applyEdits(null, null, [24, 89], "OBJECTID", new AsyncResponder(onResult, onFault));... It worked very well ... but a couple of days ago the map changed and now uses a version to edit the data besides the "default" version... when I try to delete the feature the applyedits method is called twice... I dont know why... the first response is Ok so the feature was deleted but the second one gives me an error saying the feature do not exits o it was deleted... so my question.. what could change that provoques that the method is called twice ???
Thanks in advance!!!