<?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: Error With Geodatabase Query in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/error-with-geodatabase-query/m-p/1057423#M5489</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Since you are working with the Geodatabase file and working with GeodatabaseFeatureTables,&amp;nbsp; the code for performing query operation on GeodatabaseFeatureTable is same as query on ServiceFeatureTable which you are already following from above sample.&lt;BR /&gt;&lt;BR /&gt;Can you check the LOAD status of theGeodatabaseFeatureTables on which the query is being performed? If the table is LOADED and queryParameter's has a valid whereClause for the table, then we expect it to work as in the sample.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 23:30:04 GMT</pubDate>
    <dc:creator>RamaChintapalli</dc:creator>
    <dc:date>2021-05-12T23:30:04Z</dc:date>
    <item>
      <title>Error With Geodatabase Query</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/error-with-geodatabase-query/m-p/1056648#M5485</link>
      <description>&lt;P&gt;dear everyone:&lt;/P&gt;&lt;P&gt;I got an error when i writed the code.I wanted to&amp;nbsp;f&lt;SPAN&gt;ind features in a geodatabase file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the error is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Feature search failed for: asd. Error: com.esri.arcgisruntime.ArcGISRuntimeException: Invalid call.: Object failed to load, unable to execute task.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My code is follow the sample :Feature layer query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/android/java/sample-code/feature-layer-query/" target="_blank"&gt;https://developers.arcgis.com/android/java/sample-code/feature-layer-query/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here is my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;private void &lt;/SPAN&gt;&lt;SPAN&gt;searchForState&lt;/SPAN&gt;(&lt;SPAN&gt;final &lt;/SPAN&gt;&lt;SPAN&gt;String &lt;/SPAN&gt;searchString) {&lt;BR /&gt;    &lt;SPAN&gt;// clear any previous selections&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;mFeatureLayer &lt;/SPAN&gt;= &lt;SPAN&gt;featureLayerList&lt;/SPAN&gt;.get(&lt;SPAN&gt;0&lt;/SPAN&gt;);&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;mFeatureLayer&lt;/SPAN&gt;.clearSelection();&lt;BR /&gt;    &lt;SPAN&gt;// create objects required to do a selection with a query&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;QueryParameters query &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;QueryParameters();&lt;BR /&gt;    &lt;SPAN&gt;// make search case insensitive&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;query&lt;/SPAN&gt;.setWhereClause(&lt;SPAN&gt;"upper(STATE_NAME) LIKE '%" &lt;/SPAN&gt;+ searchString.toUpperCase() + &lt;SPAN&gt;"%'"&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;// call select features&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;final &lt;/SPAN&gt;&lt;SPAN&gt;ListenableFuture&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;FeatureQueryResult&lt;/SPAN&gt;&amp;gt; &lt;SPAN&gt;future &lt;/SPAN&gt;= &lt;SPAN&gt;mServiceFeatureTable&lt;/SPAN&gt;.queryFeaturesAsync(&lt;SPAN&gt;query&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;// add done loading listener to fire when the selection returns&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;future&lt;/SPAN&gt;.addDoneListener(() -&amp;gt; {&lt;BR /&gt;        &lt;SPAN&gt;try &lt;/SPAN&gt;{&lt;BR /&gt;            &lt;SPAN&gt;// call get on the future to get the result&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;FeatureQueryResult result &lt;/SPAN&gt;= &lt;SPAN&gt;future&lt;/SPAN&gt;.get();&lt;BR /&gt;            &lt;SPAN&gt;// check there are some results&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;Iterator&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;Feature&lt;/SPAN&gt;&amp;gt; &lt;SPAN&gt;resultIterator &lt;/SPAN&gt;= &lt;SPAN&gt;result&lt;/SPAN&gt;.iterator();&lt;BR /&gt;            &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;resultIterator&lt;/SPAN&gt;.hasNext()) {&lt;BR /&gt;                &lt;SPAN&gt;// get the extent of the first feature in the result to zoom to&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;Feature feature &lt;/SPAN&gt;= &lt;SPAN&gt;resultIterator&lt;/SPAN&gt;.next();&lt;BR /&gt;                &lt;SPAN&gt;Envelope envelope &lt;/SPAN&gt;= &lt;SPAN&gt;feature&lt;/SPAN&gt;.getGeometry().getExtent();&lt;BR /&gt;                &lt;SPAN&gt;mMapView&lt;/SPAN&gt;.setViewpointGeometryAsync(&lt;SPAN&gt;envelope&lt;/SPAN&gt;, &lt;SPAN&gt;10&lt;/SPAN&gt;);&lt;BR /&gt;                &lt;SPAN&gt;// select the feature&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;mFeatureLayer&lt;/SPAN&gt;.selectFeature(&lt;SPAN&gt;feature&lt;/SPAN&gt;);&lt;BR /&gt;            } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;                &lt;SPAN&gt;Toast&lt;/SPAN&gt;.&lt;SPAN&gt;makeText&lt;/SPAN&gt;(&lt;SPAN&gt;this&lt;/SPAN&gt;, &lt;SPAN&gt;"No states found with name: " &lt;/SPAN&gt;+ &lt;SPAN&gt;searchString&lt;/SPAN&gt;, &lt;SPAN&gt;Toast&lt;/SPAN&gt;.&lt;SPAN&gt;LENGTH_LONG&lt;/SPAN&gt;).show();&lt;BR /&gt;            }&lt;BR /&gt;        } &lt;SPAN&gt;catch &lt;/SPAN&gt;(&lt;SPAN&gt;Exception &lt;/SPAN&gt;e) {&lt;BR /&gt;            &lt;SPAN&gt;String error &lt;/SPAN&gt;= &lt;SPAN&gt;"Feature search failed for: " &lt;/SPAN&gt;+ &lt;SPAN&gt;searchString &lt;/SPAN&gt;+ &lt;SPAN&gt;". Error: " &lt;/SPAN&gt;+ e.getMessage();&lt;BR /&gt;            &lt;SPAN&gt;Toast&lt;/SPAN&gt;.&lt;SPAN&gt;makeText&lt;/SPAN&gt;(&lt;SPAN&gt;this&lt;/SPAN&gt;, &lt;SPAN&gt;error&lt;/SPAN&gt;, &lt;SPAN&gt;Toast&lt;/SPAN&gt;.&lt;SPAN&gt;LENGTH_LONG&lt;/SPAN&gt;).show();&lt;BR /&gt;            &lt;SPAN&gt;Log&lt;/SPAN&gt;.&lt;SPAN&gt;e&lt;/SPAN&gt;(&lt;SPAN&gt;"zhz search :"&lt;/SPAN&gt;, &lt;SPAN&gt;error&lt;/SPAN&gt;);&lt;BR /&gt;        }&lt;BR /&gt;    });&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 May 2021 13:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/error-with-geodatabase-query/m-p/1056648#M5485</guid>
      <dc:creator>zhenghanzhang</dc:creator>
      <dc:date>2021-05-11T13:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error With Geodatabase Query</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/error-with-geodatabase-query/m-p/1057423#M5489</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Since you are working with the Geodatabase file and working with GeodatabaseFeatureTables,&amp;nbsp; the code for performing query operation on GeodatabaseFeatureTable is same as query on ServiceFeatureTable which you are already following from above sample.&lt;BR /&gt;&lt;BR /&gt;Can you check the LOAD status of theGeodatabaseFeatureTables on which the query is being performed? If the table is LOADED and queryParameter's has a valid whereClause for the table, then we expect it to work as in the sample.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 23:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/error-with-geodatabase-query/m-p/1057423#M5489</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2021-05-12T23:30:04Z</dc:date>
    </item>
  </channel>
</rss>

