I am using .NET 8 and ESRI Maps SDK 200.3 in MAUI running on Android 14 to add features to a FeatureLayer. But when I add the feature to the FeatureTable I keep getting an ArcGISRuntimeException with the message
Esri.ArcGISRuntime.ArcGISRuntimeException: Geodatabase geometry outside replica extent: Feature geometry is outside the generate geodatabase geometry. Encountered on feature with ID of -9223372036854775808.
at Esri.ArcGISRuntime.Internal.CoreTaskExtensions.TaskCompletedCallbackHandler.CreateInternal(CoreTask task, CancellationToken cancellationToken)
at Esri.ArcGISRuntime.Data.FeatureTable.AddFeatureAsync(Feature feature)
The Feature Table was originally downloaded from ArcGIS Online to a mobile geodatabase.
The code that adds the feature looks like this:
Feature feature = featureLayer.FeatureTable.CreateFeature();
feature.Geometry = GeometryEditor.Geometry;
if (featureLayer.FeatureTable.CanAdd())
{
await featureLayer.FeatureTable.AddFeatureAsync(feature);
}The code on line #5 throws the exception.
But surely it should be possible to add a new feature that lies outside the extent of the old features? Can anyone help me find a way to accomplish this?