<?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: Arcade &amp;quot;Count&amp;quot; issues in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063639#M40348</link>
    <description>Unfortunately that doesn't work either.&lt;BR /&gt;&lt;BR /&gt;As the error says, it's getting past the FeatureSetByName (I also tried ID) before the error, it's specifically the count that fails.&lt;BR /&gt;&lt;BR /&gt;There is an issue with the feature set getting created by the filter. I've just tried the script out without the filter and it works fine&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 01 Jun 2021 15:24:30 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-06-01T15:24:30Z</dc:date>
    <item>
      <title>Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063502#M40332</link>
      <description>&lt;P&gt;I'm using the below code, attempting to filter a related table for inspections to show a message in the pop-up&lt;/P&gt;&lt;P&gt;var gid = $feature.globalid&lt;BR /&gt;console(gid)&lt;BR /&gt;var signcount = filter(FeatureSetByName($map,'Sign_Information', ['*']),'parentglobalid = gid')&lt;BR /&gt;console(signcount)&lt;BR /&gt;var x = typeof(signcount)&lt;BR /&gt;console(x)&lt;BR /&gt;var sign = count(signcount)&lt;BR /&gt;console("sign = "+sign)&lt;/P&gt;&lt;P&gt;var p = ""&lt;BR /&gt;when(sign &amp;gt; 1, p = "There are "+sign+" sign surveys on this asset",&lt;BR /&gt;sign == 1, p = "There is 1 sign survey on this asset",&lt;BR /&gt;p = "There are no sign surveys recorded for this asset")&lt;BR /&gt;return p&lt;/P&gt;&lt;P&gt;This just fails and errors in the expression builder.&lt;BR /&gt;&lt;BR /&gt;Further interrogation in Pro gives&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenSmith93_1-1622548234258.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14668i466D4AC24ABFBE25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenSmith93_1-1622548234258.png" alt="BenSmith93_1-1622548234258.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have consoled out the type of the signcount to rule out issues there.&lt;/P&gt;&lt;P&gt;What's the inevitably very obvious thing I'm missing?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 11:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063502#M40332</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-01T11:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063571#M40337</link>
      <description>&lt;P&gt;&lt;SPAN class="hljs-built_in"&gt;Filter()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-built_in"&gt;TypeOf&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count()&lt;/P&gt;&lt;P&gt;Console()&lt;/P&gt;&lt;P&gt;When()&lt;/P&gt;&lt;P&gt;*in Proper Case. Does it work?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:05:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063571#M40337</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-06-01T14:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063599#M40339</link>
      <description>Arcade is supposed to remove the case dependency, but also, no unfortunately not.&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063599#M40339</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-01T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063606#M40345</link>
      <description>&lt;P&gt;Could you add the &lt;STRONG&gt;Boolean (includeGeometry?)&lt;/STRONG&gt; to &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyname" target="_self"&gt;&lt;STRONG&gt;FeatureSetByName()&lt;/STRONG&gt;&lt;/A&gt; function?&lt;/P&gt;&lt;P&gt;I understand it's optional. But still want to tick off that option as the probable cause of the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063606#M40345</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-06-01T14:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063639#M40348</link>
      <description>Unfortunately that doesn't work either.&lt;BR /&gt;&lt;BR /&gt;As the error says, it's getting past the FeatureSetByName (I also tried ID) before the error, it's specifically the count that fails.&lt;BR /&gt;&lt;BR /&gt;There is an issue with the feature set getting created by the filter. I've just tried the script out without the filter and it works fine&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Jun 2021 15:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063639#M40348</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-01T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063668#M40350</link>
      <description>&lt;P&gt;Your filter clause is failing due to incorrect syntax. "gid" is a string variable, not the actual value for parentglobalid. Use this syntax&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var signcount = filter(FeatureSetByName($map,'Sign_Information', ['*']),"parentglobalid = '" + gid + "'");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 15:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063668#M40350</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-06-01T15:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063741#M40353</link>
      <description>&lt;P&gt;It's not even as complicated as that.&lt;BR /&gt;var signcount = filter(FeatureSetByName($map,'Sign_Information', ['*']),'parentglobalid = &lt;EM&gt;&lt;STRONG&gt;@&lt;/STRONG&gt;&lt;STRONG&gt;gid&lt;/STRONG&gt;&lt;/EM&gt;') to declare it as an arcade variable&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 08:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063741#M40353</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-02T08:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063795#M40355</link>
      <description>&lt;P&gt;That's a more concise syntax I didn't know about. Is your script working now?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 19:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063795#M40355</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-06-01T19:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063976#M40361</link>
      <description>Nor did I, annoyingly it wasn't even hidden in the depths of some obscure guide, it's on the guide for anything that has an SQL string query in the function reference.&lt;BR /&gt;&lt;BR /&gt;To a degree, it's working in the expressions builder but not in the actual pop-ups.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jun 2021 08:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063976#M40361</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-02T08:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade "Count" issues</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063978#M40362</link>
      <description>&lt;P&gt;See below, but looks like I've sorted one problem at least.&lt;BR /&gt;&lt;BR /&gt;The filter wasn't working properly as I hadn't done the SQL query correctly, needed an "@" before "gid" to set it as an arcade variable.&lt;BR /&gt;&lt;BR /&gt;Still not working in the actual pop-up, but it is working in the expression builder.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 08:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-quot-count-quot-issues/m-p/1063978#M40362</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-02T08:13:16Z</dc:date>
    </item>
  </channel>
</rss>

