We have a myGeodatabaseFeatureTable joined related with two another tables. I can add, I can edit, but I can't delete feature from this table.
myGeodatabaseFeatureTable.canDelete(featureId); // true
myGeodatabaseFeatureTable.deleteFeature(featureId); // AndroidRuntime: FATAL EXCEPTION
java.lang.RuntimeException: Abort due to constraint violation
at com.esri.core.geodatabase.GeodatabaseFeatureTable.nativeDeleteRows(Native Method)
at com.esri.core.geodatabase.GeodatabaseFeatureTable.deleteFeatures(SourceFile:212)
How did you perform the table join?
Alexander, sorry for my bad English. Not joined, but related. Related with two another tables.
Is this from a relationship class that you made in ArcMap?
No, database relationship class.
ibespalov - To test whether this issue is with the relationship class itself or with the Android API, would you open the feature service in ArcMap or ArcGIS Online and try performing the delete there to see if it is successful?
We got solution for this problem. Database developer (not me) removed some relations, and now it works. But my question is still opened: why release SDK returns fatal RuntimeException, but not TableException. Why canDelete returns true? Thanks.