<?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 AGSGDBFeatureServiceTable loaded but has no features in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgdbfeatureservicetable-loaded-but-has-no/m-p/80188#M790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I init a AGSGDBFeatureServiceTable and call the loadCompletion block, inside the block when I print out the number of features sometimes I get the right number and sometimes I get zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGSGDBFeatureServiceTable.loaded is YES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;self.fServiceTable = [[AGSGDBFeatureServiceTable alloc] initWithServiceURL:url credential:self.credential &lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;spacialReference:self.mapView.spatialRefernece];&lt;/SPAN&gt;

&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;self.fServiceTable.loadCompletion = ^(NSError *error) {&lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"Count = %lu", (unsigned long)weakSelf.fServiceTable.featureCount);&lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;};&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:05:39 GMT</pubDate>
    <dc:creator>KyleDunaway</dc:creator>
    <dc:date>2021-12-10T23:05:39Z</dc:date>
    <item>
      <title>AGSGDBFeatureServiceTable loaded but has no features</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgdbfeatureservicetable-loaded-but-has-no/m-p/80188#M790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I init a AGSGDBFeatureServiceTable and call the loadCompletion block, inside the block when I print out the number of features sometimes I get the right number and sometimes I get zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGSGDBFeatureServiceTable.loaded is YES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;self.fServiceTable = [[AGSGDBFeatureServiceTable alloc] initWithServiceURL:url credential:self.credential &lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;spacialReference:self.mapView.spatialRefernece];&lt;/SPAN&gt;

&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;self.fServiceTable.loadCompletion = ^(NSError *error) {&lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"Count = %lu", (unsigned long)weakSelf.fServiceTable.featureCount);&lt;/SPAN&gt;
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;};&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgdbfeatureservicetable-loaded-but-has-no/m-p/80188#M790</guid>
      <dc:creator>KyleDunaway</dc:creator>
      <dc:date>2021-12-10T23:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGDBFeatureServiceTable loaded but has no features</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgdbfeatureservicetable-loaded-but-has-no/m-p/80189#M791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A 'loaded' state of the feature service table means that the service is available/authenticated and the service info (meta data) is available. The query to fetch features is sent only when the layer is rendered on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;Suganya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 16:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgdbfeatureservicetable-loaded-but-has-no/m-p/80189#M791</guid>
      <dc:creator>SuganyaBaskaran1</dc:creator>
      <dc:date>2015-04-16T16:59:32Z</dc:date>
    </item>
  </channel>
</rss>

