When I query a feature layer I have been getting a sample error on some of the fields. I did not have this problem with the old java SDK.
Originally, I tested this class by getting data from an AGOL secure service and ran into problems with retrieving half of the fields. So to simplify the test I used esri's sample service and got the same results. Below is a simple class that prints out the values in a row. However when I try to get the <state_abbr> data the program fails.
Esri, please help me on this.
Thanks
Solved! Go to Solution.
Hi,
Try to use QueryFeatureAsync() with QueryFeatureFields.LoaddAll option:
// Query the feature table
FeatureQueryResult queryResult = await _featureTable.QueryFeaturesAsync(queryParams, QueryFeatureFields.LoaddAll );
By default, the program loads only the minimum fields.
QueryFeatureFields Enumeration
Hope that helps.
Hi,
Try to use QueryFeatureAsync() with QueryFeatureFields.LoaddAll option:
// Query the feature table
FeatureQueryResult queryResult = await _featureTable.QueryFeaturesAsync(queryParams, QueryFeatureFields.LoaddAll );
By default, the program loads only the minimum fields.
QueryFeatureFields Enumeration
Hope that helps.
Worked like a charm. Thank you so much.
Thomas Bales
GIS System Architect
Loram Maintenance of Way, Inc.
3900 Arrowhead Drive
Hamel, Minnesota 55340
Cell: 612-875-3154