<?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 not working in Pop-Up in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338803#M55130</link>
    <description>&lt;P&gt;You can start testing if the script is crashing on a specific line. Uncomment the return statements one by one to see if it makes it to that point.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//return "Start"
var related = FeatureSetByRelationshipName($feature, "GISWRKS1.WORKS.INSPECTIONS_Valve_Inspection");
//return "Relate worked"
var output = `${count(related)} Previous Inspection`;
if (count(related) != 1) output += "s";
//return "Starting loop"
for (var rec in related) {
  output += `${TextFormatting.NewLine}• ${Text(rec.INSP_DATE, 'DD/MM/YYYY')}`
}
return output&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 19:08:56 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2023-10-17T19:08:56Z</dc:date>
    <item>
      <title>Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338625#M55111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following Arcade expression seems to be working in the Expression builder, but after saving and adding to a pop-up nothing gets displayed.&lt;/P&gt;&lt;P&gt;Any ideas as to what might be going on??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_0-1697553587954.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83229i5181EA3B5D5C66D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_0-1697553587954.png" alt="BrianBulla_0-1697553587954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_1-1697553634313.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83230i29E44B5713B3F722/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_1-1697553634313.png" alt="BrianBulla_1-1697553634313.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 14:40:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338625#M55111</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-10-17T14:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338742#M55121</link>
      <description>&lt;P&gt;So based on this question (&lt;A href="https://community.esri.com/t5/arcgis-online-questions/arcade-expression-correct-but-doesn-t-show-up-in/m-p/1240075" target="_blank"&gt;https://community.esri.com/t5/arcgis-online-questions/arcade-expression-correct-but-doesn-t-show-up-in/m-p/1240075&lt;/A&gt;), I have modified my code to return a dictionary instead of a value, but still no luck.&amp;nbsp; Again it works in the expression builder, but not in the pop-up.&lt;/P&gt;&lt;P&gt;I'm also noticing that I don't even have the option to add "Arcade Expression" in my pop-up.&amp;nbsp; Is this maybe a problem with our Portal??&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_0-1697562867783.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83269iD796423B301FED07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_0-1697562867783.png" alt="BrianBulla_0-1697562867783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 17:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338742#M55121</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-10-17T17:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338753#M55123</link>
      <description>&lt;P&gt;What version is your Portal?&amp;nbsp;The Popup element was added in Arcade v1.16, which is &lt;A href="https://developers.arcgis.com/arcade/guide/version-matrix/" target="_self"&gt;available&lt;/A&gt; in Portal 11.0. However, you don't need that as the Text element should be able to show your code properly.&lt;/P&gt;&lt;P&gt;Is there a chance you're using another attribute expression in your text element instead of the RelatedExpressions expression?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 17:46:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338753#M55123</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-17T17:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338755#M55124</link>
      <description>&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;I have no idea what version our Portal is but it's definitely not the most recent version.&amp;nbsp; It's managed by our IT department.&lt;/P&gt;&lt;P&gt;As for the expression, I only have the one expression in that Text element.&amp;nbsp; Whether returning a dictionary or a value, I cannot get it to work in the Pop-Up.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_0-1697565193154.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83273i9E8BAA1B0B85AB56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_0-1697565193154.png" alt="BrianBulla_0-1697565193154.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var related = FeatureSetByRelationshipName($feature, "GISWRKS1.WORKS.INSPECTIONS_Valve_Inspection");
var output = `${count(related)} Previous Inspection`;
if (count(related) != 1) output += "s";
for (var rec in related) {
  output += `${TextFormatting.NewLine}• ` + Text(rec.INSP_DATE, 'DD/MM/YYYY')
}
return {
    type: 'text',
    text: output
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 17:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338755#M55124</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-10-17T17:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338767#M55127</link>
      <description>&lt;P&gt;If you're using a Text element, use "return output" instead of returning the dictionary.&lt;/P&gt;&lt;P&gt;When you click the Run button to test the script in the editor, it should use the first record in your table. You can check that by examining the feature's ID in the console (click on Messages after running the script).&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;console($feature.OBJECTID)&lt;/LI-CODE&gt;&lt;P&gt;Does the popup work if you click on that first record on your map?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 18:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338767#M55127</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-17T18:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338784#M55128</link>
      <description>&lt;P&gt;Yes, using output or a data dictionary the result is the same.&lt;/P&gt;&lt;P&gt;If I find that feature that is showing up when I click the "Test" button in the expression builder, still nothing shows up in the pop-up.&amp;nbsp; See screenshots below.&lt;/P&gt;&lt;P&gt;I really have no idea what is going on and why this isn't working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_0-1697567637187.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83282iEE7E52FADD960AFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_0-1697567637187.png" alt="BrianBulla_0-1697567637187.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_1-1697568030165.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83283i38D1CFBF0BFE96A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_1-1697568030165.png" alt="BrianBulla_1-1697568030165.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 18:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338784#M55128</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-10-17T18:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338803#M55130</link>
      <description>&lt;P&gt;You can start testing if the script is crashing on a specific line. Uncomment the return statements one by one to see if it makes it to that point.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//return "Start"
var related = FeatureSetByRelationshipName($feature, "GISWRKS1.WORKS.INSPECTIONS_Valve_Inspection");
//return "Relate worked"
var output = `${count(related)} Previous Inspection`;
if (count(related) != 1) output += "s";
//return "Starting loop"
for (var rec in related) {
  output += `${TextFormatting.NewLine}• ${Text(rec.INSP_DATE, 'DD/MM/YYYY')}`
}
return output&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 19:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1338803#M55130</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-17T19:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339084#M55155</link>
      <description>&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;Thanks for the insight.&amp;nbsp; While all of the code works in the expression builder, it seems like all of the code in lines 4, 5 and 7 is not working.&lt;/P&gt;&lt;P&gt;If I do this I can get the output to say "Previous Inspection" in the map pop-up, but in the expression builder it always shows me the results I actually want.&amp;nbsp; Why would it show up differently in the expression builder than in the map?&lt;/P&gt;&lt;P&gt;I am using the same feature in the map that the expression builder is using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var related = FeatureSetByRelationshipName($feature, "GISWRKS1.WORKS.INSPECTIONS_Valve_Inspection");
//return "Relate"

var output = `Previous Inspection`;
//return "var setup"
//if (count(related) != 1) output += "s";
//return "First loop"

for (var rec in related) {
  output += `${TextFormatting.NewLine}• ` + Text(rec.INSP_DATE, 'DD/MM/YYYY')
}
return output&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 12:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339084#M55155</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-10-18T12:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339143#M55157</link>
      <description>&lt;P&gt;And breaking things down a bit further, even if I do this, I cannot get anything to display in the pop-up but it does display in the expression editor.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var related = FeatureSetByRelationshipName($feature, "GISWRKS1.WORKS.INSPECTIONS_Valve_Inspection");
//return "Relate"

var output = count(related) //`Previous Inspection`;
//return "var setup"
//if (count(related) != 1) output += "s";
return output&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would there be some reason why the function "Count" might cause it to crash??&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 14:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339143#M55157</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-10-18T14:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339156#M55160</link>
      <description>&lt;P&gt;I've used that to count related records in a popup on AGOL and it works as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 14:51:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339156#M55160</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-18T14:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339159#M55161</link>
      <description>&lt;P&gt;It's so weird that everything works in the expression builder but not in the actual webmap.&amp;nbsp; Have you ever heard of a firewall, McAfee or VPN causing issues with things like this?&amp;nbsp; I'm running out of ideas as to why this isn't working.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 14:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339159#M55161</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-10-18T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339173#M55163</link>
      <description>&lt;P&gt;I haven't, but I'm not running on Portal, so I don't know what bumps that adds.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 15:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339173#M55163</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-18T15:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339205#M55165</link>
      <description>&lt;P&gt;For what it's worth we are on Enterprise v10.8.1 and apparently REST services v 10.9.1&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 16:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1339205#M55165</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-10-18T16:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1705193#M68776</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/132711"&gt;@BrianBulla&lt;/a&gt;&amp;nbsp;- I know this thread is super old, but I'm having a similar issue. Did you ever find the solution or a workaround?&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 14:27:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1705193#M68776</guid>
      <dc:creator>HannahWilson3</dc:creator>
      <dc:date>2026-05-29T14:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade not working in Pop-Up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1705195#M68777</link>
      <description>&lt;P&gt;Hi Hannah!&amp;nbsp; Unfortunately "No", I was never able to resolve this.&amp;nbsp; I guess my workaround was to stop using esri products, and started using VertiGIS.&amp;nbsp; Things seem to work a lot smoother there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 14:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-not-working-in-pop-up/m-p/1705195#M68777</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2026-05-29T14:40:10Z</dc:date>
    </item>
  </channel>
</rss>

