mhamsa

Version 100.7 - Exception thrown getting results from FeatureTable.QueryFeaturesAsync

Discussion created by mhamsa on Jan 3, 2020
Latest reply on Jan 24, 2020 by mhamsa

Hello,

 

We've upgraded to version 100.7 and now were seeing some problems with code that was working in version 100.6 The code is using FeatureTable.QueryFeaturesAsync to get all the features within an envelope.

 

 

var selectionEnvelope = new Envelope(X1, Y1, X2, Y2, MapSpatialReference);

var queryParams = new QueryParameters();
queryParams.Geometry = selectionEnvelope;
Task<FeatureQueryResult> tResult = Task.Run(async () =>
{
    FeatureQueryResult q = await ftrTable.QueryFeaturesAsync(queryParams);
    return q;
});
FeatureQueryResult queryResult = tResult.Result;
When that last line of code is executed, we're getting an exception:
"Not implemented: operation does not support curves yet"
   at Esri.ArcGISRuntime.ArcGISException.HandleCoreError(CoreError error, Boolean throwException)
   at RuntimeCoreNet.GeneratedWrappers.Interop.CheckError(IntPtr errorHandle, Boolean throwOnFailure, GCHandle wrapperHandle)
   at RuntimeCoreNet.GeneratedWrappers.CoreTask.Get()
   at Esri.ArcGISRuntime.Internal.CoreTaskExtensions.TaskCompletedCallbackHandler`1.OnCompleted(Object sender, EventArgs e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Esri.ArcGISRuntime.Internal.CoreTaskExtensions.TaskCompletedCallbackHandler`1.<CreateInternal>d__7.MoveNext()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Esri.ArcGISRuntime.Data.FeatureTable.<QueryFeaturesInternal>d__71.MoveNext()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

Outcomes