<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: &amp;quot;Internal error exception&amp;quot; on QueryAsync in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-internal-error-exception-quot-on-queryasync/m-p/635822#M7848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point I am 99% certain that my problem is that the query is operating on a runtime feature table that contains polylines with parametric curves. &amp;nbsp; When I use the same query on point features I do not see the problem. &amp;nbsp;Any given the fact that when using the query on polylines the issue was sporadic and unpredictable makes me think curves were the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunate that runtime doesn't support these things... or at least provides a clearer error when they're present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 20:04:23 GMT</pubDate>
    <dc:creator>EdwardBlair</dc:creator>
    <dc:date>2017-09-22T20:04:23Z</dc:date>
    <item>
      <title>"Internal error exception" on QueryAsync</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-internal-error-exception-quot-on-queryasync/m-p/635820#M7846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am experiencing a problem with the FeatureTable.QueryAsync method that is proving very difficult to troubleshoot.&amp;nbsp; I am using the SpatialQueryFilter to find all features that intersect a geometry, and *occasionally*, the QueryAsync method throws a super generic exception.&amp;nbsp; There are certain areas that seem to be more problematic but I cannot pin down anything specific about the data there, and some geometries return results without error. Has anyone seen this or have any tips for troubleshooting an issue like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// find correct feature table:
FeatureTable targetTable = null;
IEnumerable&amp;lt;FeatureTable&amp;gt; matchTables = _defaultGDB.FeatureTables.Where(table =&amp;gt; table.Name.Equals(_parcelTableName, StringComparison.OrdinalIgnoreCase));
if (matchTables.Count() &amp;gt; 0)
&amp;nbsp; {
&amp;nbsp; targetTable = matchTables.First();
&amp;nbsp; }
&amp;nbsp; else {
&amp;nbsp; throw new Exception("The default query table could not be found.");
&amp;nbsp; }
}

// Define a spatial query
var filter = new Esri.ArcGISRuntime.Data.SpatialQueryFilter();
filter.Geometry = GeometryEngine.Project(geom, targetTable.SpatialReference);
filter.SpatialRelationship = SpatialRelationship.Intersects;

// Execute the query and await results
var results = await targetTable.QueryAsync(filter);&lt;/PRE&gt;&lt;P&gt;And my exception:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;System.Exception was caught&lt;/P&gt;&lt;P&gt;&amp;nbsp; HResult=-2146233088&lt;/P&gt;&lt;P&gt;&amp;nbsp; Message=Internal error exception&lt;/P&gt;&lt;P&gt;&amp;nbsp; Source=Esri.ArcGISRuntime&lt;/P&gt;&lt;P&gt;&amp;nbsp; StackTrace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.Interop.HandleException(Boolean retVal)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreFeatureSource.Query(CoreQueryFilter queryFilter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.Data.ArcGISFeatureTable.&amp;lt;&amp;gt;c__DisplayClass24.&amp;lt;QueryAsync&amp;gt;b__23()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Threading.Tasks.Task`1.InnerInvoke()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Threading.Tasks.Task.Execute()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --- End of stack trace from previous location where exception was thrown ---&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-internal-error-exception-quot-on-queryasync/m-p/635820#M7846</guid>
      <dc:creator>AshleyDePottey</dc:creator>
      <dc:date>2021-12-12T03:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: "Internal error exception" on QueryAsync</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-internal-error-exception-quot-on-queryasync/m-p/635821#M7847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For what its worth, I've run into nearly the same condition and same very generic error message.&lt;/P&gt;&lt;P&gt;I thought I had seen some description of a "Known Issue" where QueryAsync could fail in 10.2 with large datasets, but now I can't seem to locate that reference.&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 16:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-internal-error-exception-quot-on-queryasync/m-p/635821#M7847</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2017-09-20T16:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: "Internal error exception" on QueryAsync</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-internal-error-exception-quot-on-queryasync/m-p/635822#M7848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point I am 99% certain that my problem is that the query is operating on a runtime feature table that contains polylines with parametric curves. &amp;nbsp; When I use the same query on point features I do not see the problem. &amp;nbsp;Any given the fact that when using the query on polylines the issue was sporadic and unpredictable makes me think curves were the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunate that runtime doesn't support these things... or at least provides a clearer error when they're present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 20:04:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-internal-error-exception-quot-on-queryasync/m-p/635822#M7848</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2017-09-22T20:04:23Z</dc:date>
    </item>
  </channel>
</rss>

