<?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: Default allOccurrences Boolean in &amp;quot;Replace&amp;quot; Function Can Cause Problems in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-default-alloccurrences-boolean-in-quot/m-p/296334#M14863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: center;"&gt;&lt;IMG __jive_id="436480" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/436480_Frozen-AGOL-page.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed the following behavior when using Arcade in ArcGIS Online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added some expressions to configure a pop-up in an AGOL map. After some work, I realized that if I selected one of the points on my map, the entire web page would freeze. Eventually my web-browser would show a "Page Unresponsive" message and encourage me to exit the page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some testing, it appears I had accidentally prompted an infinite loop when using one of the functions.&amp;nbsp;I had included a Replace function in which I was trying to replace "Flood" with "Flooding". By default, that function attempts to replace all occurrences of the text. I thought that meant all occurrences in the &lt;STRONG&gt;original&lt;/STRONG&gt; value--but apparently I prompted an infinite loop. Setting the "All Occurrences" Boolean to false solved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I've seen:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This behavior exists even if the expression is not included in the pop-up contents.&lt;/LI&gt;&lt;LI&gt;This behavior only occurs if a point is selected that&amp;nbsp;executes&amp;nbsp;the expression. (E.g., If I try to replace "Flood" with "Flooding," I will not see the error if I choose a point that does not include the term "Flood")&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2019 15:53:17 GMT</pubDate>
    <dc:creator>CharlotteAbel</dc:creator>
    <dc:date>2019-02-04T15:53:17Z</dc:date>
    <item>
      <title>Arcade: Default allOccurrences Boolean in "Replace" Function Can Cause Problems</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-default-alloccurrences-boolean-in-quot/m-p/296334#M14863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: center;"&gt;&lt;IMG __jive_id="436480" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/436480_Frozen-AGOL-page.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed the following behavior when using Arcade in ArcGIS Online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added some expressions to configure a pop-up in an AGOL map. After some work, I realized that if I selected one of the points on my map, the entire web page would freeze. Eventually my web-browser would show a "Page Unresponsive" message and encourage me to exit the page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some testing, it appears I had accidentally prompted an infinite loop when using one of the functions.&amp;nbsp;I had included a Replace function in which I was trying to replace "Flood" with "Flooding". By default, that function attempts to replace all occurrences of the text. I thought that meant all occurrences in the &lt;STRONG&gt;original&lt;/STRONG&gt; value--but apparently I prompted an infinite loop. Setting the "All Occurrences" Boolean to false solved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I've seen:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This behavior exists even if the expression is not included in the pop-up contents.&lt;/LI&gt;&lt;LI&gt;This behavior only occurs if a point is selected that&amp;nbsp;executes&amp;nbsp;the expression. (E.g., If I try to replace "Flood" with "Flooding," I will not see the error if I choose a point that does not include the term "Flood")&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 15:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-default-alloccurrences-boolean-in-quot/m-p/296334#M14863</guid>
      <dc:creator>CharlotteAbel</dc:creator>
      <dc:date>2019-02-04T15:53:17Z</dc:date>
    </item>
  </channel>
</rss>

