<?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 Arcade Symbology Errors when Publishing from Pro in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-errors-when-publishing-from-pro/m-p/1209418#M47702</link>
    <description>&lt;P&gt;Our office is preparing for a field inspection effort and we've run into some weird behavior involving Arcade and maps created in Pro and published out to AGOL.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The TL;DR&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Everything we've found essentially boils down to three differing cases:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="91px"&gt;&lt;P&gt;Upload Path&lt;/P&gt;&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="91px"&gt;&lt;P&gt;Arcade symbology written in...&lt;/P&gt;&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="91px"&gt;Feature # Correct in Pro?&lt;/TD&gt;&lt;TD width="24.93606138107417%" height="91px"&gt;Feature # Correct in AGOL?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="40px"&gt;&lt;P&gt;1. Share As Web Map from Pro 2.9.4&lt;/P&gt;&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="40px"&gt;Pro&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="40px"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Yes&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="24.93606138107417%" height="40px"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;No&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;2. Share As Web Map from Pro 2.9.4&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="25px"&gt;AGOL&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="25px"&gt;&lt;FONT color="#999999"&gt;N/A&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="24.93606138107417%" height="25px"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;No&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="47px"&gt;3. GDB zipped &amp;amp; uploaded to AGOL -&amp;gt; Feature Layer -&amp;gt; Web Map created&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="47px"&gt;AGOL&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="47px"&gt;&lt;FONT color="#999999"&gt;N/A&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="24.93606138107417%" height="47px"&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Yes&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The Long Version&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;We've tried multiple variations on Arcade Expressions, and the above behavior always seems to persist no matter how simple or complicated the expression is.&lt;/P&gt;&lt;P&gt;Our most telling test targeted a single field: "EndsInspected", which contains the values 0, 1, and 2.&lt;/P&gt;&lt;P&gt;If we select that field from the field list in AGOL and symbolize, we get the correct feature counts, regardless of upload method.&amp;nbsp; If we instead symbolize on the Arcade expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return $feature.EndsInspected&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;we get &lt;EM&gt;incorrect&lt;/EM&gt; feature counts on any map that was published from within Pro.&amp;nbsp; If the map was produced according to Case 3 above, the feature counts are correct.&lt;/P&gt;&lt;P&gt;Below is an image showing the feature counts for our intended two-field expression.&amp;nbsp; It's checking for non-null values in two different inspector fields.&amp;nbsp; This is from our Case 1 attempt above.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewReed_0-1662152527158.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50366iCE1060A85FBEE14F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewReed_0-1662152527158.png" alt="MatthewReed_0-1662152527158.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still not sure if the error is just in &lt;EM&gt;displayed&lt;/EM&gt; counts in AGOL for the broken cases or if the error is in the underlying data.&amp;nbsp; I'm also not sure yet if the problem's happening on the Pro side (a "pitching" error) or the AGOL side (a "catching" error).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else run into behavior like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S., As an aside to the board administrators: Why is Arcade not an option for the code snippet functionality?&amp;nbsp; Just an oversight?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 21:09:12 GMT</pubDate>
    <dc:creator>MatthewReed</dc:creator>
    <dc:date>2022-09-02T21:09:12Z</dc:date>
    <item>
      <title>Arcade Symbology Errors when Publishing from Pro</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-errors-when-publishing-from-pro/m-p/1209418#M47702</link>
      <description>&lt;P&gt;Our office is preparing for a field inspection effort and we've run into some weird behavior involving Arcade and maps created in Pro and published out to AGOL.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The TL;DR&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Everything we've found essentially boils down to three differing cases:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="91px"&gt;&lt;P&gt;Upload Path&lt;/P&gt;&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="91px"&gt;&lt;P&gt;Arcade symbology written in...&lt;/P&gt;&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="91px"&gt;Feature # Correct in Pro?&lt;/TD&gt;&lt;TD width="24.93606138107417%" height="91px"&gt;Feature # Correct in AGOL?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="40px"&gt;&lt;P&gt;1. Share As Web Map from Pro 2.9.4&lt;/P&gt;&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="40px"&gt;Pro&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="40px"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Yes&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="24.93606138107417%" height="40px"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;No&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;2. Share As Web Map from Pro 2.9.4&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="25px"&gt;AGOL&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="25px"&gt;&lt;FONT color="#999999"&gt;N/A&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="24.93606138107417%" height="25px"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;No&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="47px"&gt;3. GDB zipped &amp;amp; uploaded to AGOL -&amp;gt; Feature Layer -&amp;gt; Web Map created&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="47px"&gt;AGOL&lt;/TD&gt;&lt;TD width="12.531969309462914%" height="47px"&gt;&lt;FONT color="#999999"&gt;N/A&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="24.93606138107417%" height="47px"&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Yes&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The Long Version&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;We've tried multiple variations on Arcade Expressions, and the above behavior always seems to persist no matter how simple or complicated the expression is.&lt;/P&gt;&lt;P&gt;Our most telling test targeted a single field: "EndsInspected", which contains the values 0, 1, and 2.&lt;/P&gt;&lt;P&gt;If we select that field from the field list in AGOL and symbolize, we get the correct feature counts, regardless of upload method.&amp;nbsp; If we instead symbolize on the Arcade expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return $feature.EndsInspected&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;we get &lt;EM&gt;incorrect&lt;/EM&gt; feature counts on any map that was published from within Pro.&amp;nbsp; If the map was produced according to Case 3 above, the feature counts are correct.&lt;/P&gt;&lt;P&gt;Below is an image showing the feature counts for our intended two-field expression.&amp;nbsp; It's checking for non-null values in two different inspector fields.&amp;nbsp; This is from our Case 1 attempt above.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewReed_0-1662152527158.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50366iCE1060A85FBEE14F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewReed_0-1662152527158.png" alt="MatthewReed_0-1662152527158.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still not sure if the error is just in &lt;EM&gt;displayed&lt;/EM&gt; counts in AGOL for the broken cases or if the error is in the underlying data.&amp;nbsp; I'm also not sure yet if the problem's happening on the Pro side (a "pitching" error) or the AGOL side (a "catching" error).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else run into behavior like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S., As an aside to the board administrators: Why is Arcade not an option for the code snippet functionality?&amp;nbsp; Just an oversight?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 21:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-errors-when-publishing-from-pro/m-p/1209418#M47702</guid>
      <dc:creator>MatthewReed</dc:creator>
      <dc:date>2022-09-02T21:09:12Z</dc:date>
    </item>
  </channel>
</rss>

