AnsweredAssumed Answered

AGSFeatureTable fieldForName returns error if not found

Question asked by mikedmanak on Jun 1, 2020
Latest reply on Jun 2, 2020 by NFurness-esristaff

Correct me if I'm wrong but the docs for AGSFeatureTable fieldForName indicate that the return value is a nullable AGSField, however if I request a field that does not exist it errors with the following:


ArcGIS Runtime Error Occurred. Set a breakpoint on C++ exceptions to see the original callstack and context for this error:  Error Domain=com.esri.arcgis.runtime.error Code=3017 "The requested field was not found." UserInfo={NSLocalizedFailureReason=platform position is not a field name., NSLocalizedDescription=The requested field was not found., Additional Message=platform position is not a field name.}

C++ breakpoint doesn't return anything helpful.


Docs here:

ArcGIS Runtime SDK for iOS: AGSFeatureTable Class Reference 


Shouldn't this return NULL if the field isn't found?  How should I determine if a given field name exists in an AGSFeatureTable without iterating through every field in AGSFeatureTable.fields?