Hi,
I created mobile package with ArcGIS Pro, when I load it using ArcGIS Runtime SDK for .NET, I found that FeatureTable.IsEditable is always false.
How can I enable editing in feature layers in the mobile package (mmpk)?
Thanks
The only way to generate editable offline map package is through the OfflineMapTask. The link gives a pretty detailed example of how it is done. I believe the long term plan is to allow map packages developed in Pro to be editable, but it is not available at this time.
Thank you, Mark.
In that case, which format can we use to generate offline content for which the non-spatial attributes can be edited but not sync'd or persisted?
Hi Dawn,
Mobile map packages created with ArcGIS Pro are read only, not meant to be editable.
Mark
I came across the same issue after creating a mobile map package from ArcGIS Pro for use on a mobile platform. I followed the sample code for CreateAsync(Map) to enable editing. The mmpk is loaded at runtime and does not have a portal reference. The user needs to be allowed to update the non-spatial attribute data in the feature class and their changes do not need to be sync'd back to a portal item - it is just used to demonstrate how changing the attributes changes the symbology on the map. I initially tried to use FeatureTable.UpdateFeatureAsync(feature) but received an error that the underlying map is readonly. Then I found this post. Now there is an error when trying to use CreateAsync - "Illegal state: The online map must have an item property which is its online portal item". I tried uploading the mmpk to ArcGIS Online, but keep receiving 502 errors during the upload.
Is there any way to make an already offline mobile map pacakge created from Pro available for editing of attributes (with no need to sync)?
You need to use OfflineMapTask.CreateAsync() method to generate MMPK file. In this way when the map is taken offline, it is stored as a mobile map. If the map contains sync-enabled feature layers, those can be edited offline as well, otherwise generated MMPK from Pro isn't editable.
Hope that helps. Thanks
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.