Version 100.7 - Exception thrown getting results from FeatureTable.QueryFeaturesAsync

183
1
01-03-2020 10:21 AM
MichaelHamsa
New Contributor III

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()
0 Kudos
1 Reply
MichaelHamsa
New Contributor III

Thought I'd pop this one up again and see if anyone had any feedback.

Thanks,

Mike...

0 Kudos