.NET Quartz SDK Sample Error When Querying Feature Layer

129
2
Jump to solution
09-29-2017 08:45 AM
Occasional Contributor

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

Tags (3)
Reply
0 Kudos
1 Solution

Accepted Solutions
Occasional Contributor III

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.

View solution in original post

Reply
0 Kudos
2 Replies
Occasional Contributor III

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.

View solution in original post

Reply
0 Kudos
Occasional Contributor

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