<?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: Cannot Query Related from local geodatabase in ArcGIS Runtime SDK for .NET in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/cannot-query-related-from-local-geodatabase-in/m-p/412590#M4903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made some progress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. "&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;sehexception..." disappeared after I updated my runtime to version 10.2.7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://developers.arcgis.com/net/desktop/guide/release-notes.htm" title="https://developers.arcgis.com/net/desktop/guide/release-notes.htm"&gt;Release notes for 10.2.7—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;BUG-000087473 &lt;CODE class="usertext" style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; padding: 0.25rem 0 0.25rem 0.25rem; border-top-color: #efefef; border-bottom-color: #efefef; border-left-color: #efefef; color: #595959; font-size: 0.85em; background-color: #f8f8f8;"&gt;GeodatabaseFeatureTable.QueryRelatedAsync&lt;/CODE&gt; throws SEHException.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;2. I had response from Esri Support that &lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Item not found in the database &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Exception is registered as a "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif';"&gt;BUG-000095159: ArcGIS Runtime QueryRelatedAsync method returns Exception: Item not found in the database"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif';"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. I discovered that &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;Item not found in the database. (Table, domain, relationship class, etc.) :&lt;/EM&gt; exception shows in two cases:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) When there are relationships m:n (Many to Many).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b) When I use ''looped" relationships. For Example Feature 1 from Table TableA is related to Feature 2 from TableB, and in the same time, Feature 2 from TableB is related with Feature 3 from TableA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 08:10:59 GMT</pubDate>
    <dc:creator>MateuszPrusaczyk</dc:creator>
    <dc:date>2016-03-29T08:10:59Z</dc:date>
    <item>
      <title>Cannot Query Related from local geodatabase in ArcGIS Runtime SDK for .NET</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/cannot-query-related-from-local-geodatabase-in/m-p/412589#M4902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have a problem with querying related data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a FeatureService with 4 feature layers and 2 feature tables. &lt;/P&gt;&lt;P&gt;0 (layer) is Related with 4 (table)&lt;/P&gt;&lt;P&gt;1 (layer) is Related with 4 (table)&lt;/P&gt;&lt;P&gt;2 (layer) is Related with 4 (table)&lt;/P&gt;&lt;P&gt;3 (layer) is Related with 4 (table)&lt;/P&gt;&lt;P&gt;4 (table) is Related with 0 (layer), 1 (layer), 2 (layer), 3 (layer)&lt;/P&gt;&lt;P&gt;5 (table) is Related with nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;There is a situation when one feature from 4 (table) is a parent of 0 (layer) and another feature from 4 (table) is a child of 0 (layer).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created replica using queryOption: all to make sure that I download all features.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/191443_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Then I wanted to query related records.&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14583196362933993" data-renderedposition="1058_50_798_16" jivemacro_uid="_14583196362933993"&gt;&lt;P&gt; IReadOnlyList&amp;lt;GeodatabaseFeature&amp;gt; features = await table.QueryRelatedAsync(featureID, relation.ID);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost everything works fine, but there are the Exceptions thrown when querying&lt;/P&gt;&lt;P&gt;layer (0), and table (4). &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I got two kinds of Exceptions: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;One with message: Item not found in the database. (Table, domain, relationship class, etc.) :&lt;/P&gt;&lt;P&gt;And another: system.runtime.interopservices.sehexception external component has thrown an exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is these something that I'm doing in wrong way?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my Service for better understanding&lt;/P&gt;&lt;P&gt;&lt;A href="http://149.202.73.37/arcgis/rest/services/PKPEnergetyka/ProstyModel2/FeatureServer" title="http://149.202.73.37/arcgis/rest/services/PKPEnergetyka/ProstyModel2/FeatureServer"&gt;http://149.202.73.37/arcgis/rest/services/PKPEnergetyka/ProstyModel2/FeatureServer&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 17:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/cannot-query-related-from-local-geodatabase-in/m-p/412589#M4902</guid>
      <dc:creator>MateuszPrusaczyk</dc:creator>
      <dc:date>2016-03-18T17:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Query Related from local geodatabase in ArcGIS Runtime SDK for .NET</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/cannot-query-related-from-local-geodatabase-in/m-p/412590#M4903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made some progress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. "&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;sehexception..." disappeared after I updated my runtime to version 10.2.7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://developers.arcgis.com/net/desktop/guide/release-notes.htm" title="https://developers.arcgis.com/net/desktop/guide/release-notes.htm"&gt;Release notes for 10.2.7—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;BUG-000087473 &lt;CODE class="usertext" style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; padding: 0.25rem 0 0.25rem 0.25rem; border-top-color: #efefef; border-bottom-color: #efefef; border-left-color: #efefef; color: #595959; font-size: 0.85em; background-color: #f8f8f8;"&gt;GeodatabaseFeatureTable.QueryRelatedAsync&lt;/CODE&gt; throws SEHException.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;2. I had response from Esri Support that &lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Item not found in the database &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Exception is registered as a "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif';"&gt;BUG-000095159: ArcGIS Runtime QueryRelatedAsync method returns Exception: Item not found in the database"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif';"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. I discovered that &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;Item not found in the database. (Table, domain, relationship class, etc.) :&lt;/EM&gt; exception shows in two cases:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) When there are relationships m:n (Many to Many).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b) When I use ''looped" relationships. For Example Feature 1 from Table TableA is related to Feature 2 from TableB, and in the same time, Feature 2 from TableB is related with Feature 3 from TableA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 08:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/cannot-query-related-from-local-geodatabase-in/m-p/412590#M4903</guid>
      <dc:creator>MateuszPrusaczyk</dc:creator>
      <dc:date>2016-03-29T08:10:59Z</dc:date>
    </item>
  </channel>
</rss>

