<?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: FeatureSetById not working as expected in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544654#M3670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried to removed all attributes from the table except objectid and globalid, the it worked, after re-adding the attributes it stil works. So the service might have been in some undefineable state&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2020 11:28:12 GMT</pubDate>
    <dc:creator>leonoestergaard</dc:creator>
    <dc:date>2020-08-12T11:28:12Z</dc:date>
    <item>
      <title>FeatureSetById not working as expected</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544647#M3663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I got a FeatureServer with 1 layer and 1 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to create a popup on a webmap, the popup should display some data &lt;STRONG&gt;from the table&lt;/STRONG&gt;, but the result is not as i expected. To figure out the issue, im using the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;var all =FeatureSetById($map, "TrafoContainer_5842")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;console("countAll: "+count(all))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;console("TypeAll: "+TypeOf(all))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;var tt = top(all,10)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;console("TypeTT: "+TypeOf(tt))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;console("countTT: "+count(tt))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;var fst = First(all)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;console("TypeFirst: "+TypeOf(fst))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the console the following is printed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;countAll: 15633 &amp;lt;---- This matches the number of features in the table &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;
TypeAll: FeatureSet &amp;lt;---- Looking good &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;
TypeTT: FeatureSet &amp;lt;---- Still happy 
countTT: 0 &amp;lt;-----Oh no &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt; I would have expected 10 
TypeFirst: &amp;lt;------&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/cry.png" /&gt;

Any ideas on what is wrong?&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544647#M3663</guid>
      <dc:creator>leonoestergaard</dc:creator>
      <dc:date>2021-12-11T23:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetById not working as expected</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544648#M3664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/347737"&gt;leon oestergaard&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is something strange going on in your case. I just used your code in the playground (&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/playground/" title="https://developers.arcgis.com/arcade/playground/"&gt;ArcGIS Arcade | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) using one of the available layers and it works just fine:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/503025_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 13:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544648#M3664</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-08-11T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetById not working as expected</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544649#M3665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;Can you confirm that "Parcels_And_buildings_3838" is a table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The feature service I'm using consists of a layer and a table. If I query the layer using the same arcade script it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/503054_workz.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 15:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544649#M3665</guid>
      <dc:creator>leonoestergaard</dc:creator>
      <dc:date>2020-08-11T15:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetById not working as expected</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544650#M3666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/347737"&gt;leon oestergaard&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for clarifying.&amp;nbsp;The layer I used is not a table. I will test against a table and post back the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 16:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544650#M3666</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-08-11T16:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetById not working as expected</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544651#M3667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/leo@eniig.dk"&gt;leo@eniig.dk&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just did a test on a table and it still works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the data a hosted feature layer and table in ArcGIS Online? If so, could you share this data with me? You can create a group, share the data inside that group and invite me using my AGOL account "xbakker.spx".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 16:17:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544651#M3667</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-08-11T16:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetById not working as expected</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544652#M3668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Its on our entreprise installation. Ive just tried a table from another service, and it works perfect. Guess we will have look at the table for that specific service. Thank you for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 18:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544652#M3668</guid>
      <dc:creator>leonoestergaard</dc:creator>
      <dc:date>2020-08-11T18:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetById not working as expected</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544653#M3669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/leo@eniig.dk"&gt;leo@eniig.dk&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It makes sense that it might be data-related. Please post back if you find a reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 19:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544653#M3669</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-08-11T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetById not working as expected</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544654#M3670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried to removed all attributes from the table except objectid and globalid, the it worked, after re-adding the attributes it stil works. So the service might have been in some undefineable state&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 11:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyid-not-working-as-expected/m-p/544654#M3670</guid>
      <dc:creator>leonoestergaard</dc:creator>
      <dc:date>2020-08-12T11:28:12Z</dc:date>
    </item>
  </channel>
</rss>

