I have created a related feature for a feature. I got the following error while trying to add the related feature to the related table.
error: OriginalFeatureID has an incorrect value. Encountered on feature with ID of -9223372036854775808.
here the code to relate the feature with the related feature
[relatedFeature relateToFeature: (AGSArcGISFeature*)data.originalFeature];
OriginalFeatureID's value is automatically assigned to the related feature attribute after calling relateToFeature: method
I have commented "relateToFeature" and added the OriginalFeatureID Manually at related feature creation, as
[NSNumber numberWithLongLong:123456];. Same error occurs.