AnsweredAssumed Answered

Why a local package is not modified?

Question asked by xtian79 on Oct 8, 2013
Latest reply on Oct 11, 2013 by xtian79

I just develop an small ArcGIS runtime app, this app initialize a local feature service:

var localCenterlineServiceMPK = new LocalFeatureService()             {                 Path = @"C:\Users\XXX\Documents\PackageMap.mpk"             };             localCenterlineServiceMPK.StartCompleted += this.StartCompleted;              localCenterlineServiceMPK.StartAsync();

then I get a layer for that package (only has one)

private void StartCompleted(object sender, AsyncCompletedEventArgs e)         {             var centerlineLayerService = sender as LocalFeatureService;              var centerlineLayer = new ArcGISLocalFeatureLayer { Service = centerlineLayerService, ID = "Routes", LayerName = "routes", Editable = true, AutoSave = true, ReturnM = true };              this._map.Layers.Add(centerlineLayer);         }

I create some lines and add it to the layer, the lines appears on the map.

then I close the application and proceed to open the file C:\Users\XXX\Documents\PackageMap.mpk using ArcMap, to discover that the features weren't saved. (the package includes the geodatabase).

Funny part: I reopen the application....and voila!!!! the features are there.

I found that the local server unpacked the contents of the package to :

in that path resides a copy of the geodatabase, but neither it has the changes in the features.

It is driving me crazy!!!!!!! where are the features???