<?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: Can't add any arcade expressions? No Globals? e._profileGlobals is null in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275914#M25456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked the other day on feature service.&amp;nbsp; The AGOL update must've broke it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2018 21:28:03 GMT</pubDate>
    <dc:creator>JeffSegal</dc:creator>
    <dc:date>2018-04-12T21:28:03Z</dc:date>
    <item>
      <title>Can't add any arcade expressions? No Globals? e._profileGlobals is null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275909#M25451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with arcade expressions for a popup window and after only getting the error below I realized something else might be going on. Also I notice that no &lt;STRONG&gt;Global&lt;/STRONG&gt; variables are available in the expressions reference pane?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error&amp;nbsp;I get for any simple function...&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #de2900; background-color: rgba(255, 255, 255, 0.8);"&gt;Execution Error:&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: rgba(255, 255, 255, 0.8);"&gt;Cannot read property 'root' of null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem doing this in other maps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with a simple "Parks" point layer, and the map service and feature service have the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the AGOL item&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://orangeville.maps.arcgis.com/home/item.html?id=9bdcb27048ac484bb6a09b2574874640" title="https://orangeville.maps.arcgis.com/home/item.html?id=9bdcb27048ac484bb6a09b2574874640"&gt;https://orangeville.maps.arcgis.com/home/item.html?id=9bdcb27048ac484bb6a09b2574874640&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it just references my AGS map service here&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.orangeville.ca/arcgis/rest/services/Society/Parks/MapServer/0" title="https://gis.orangeville.ca/arcgis/rest/services/Society/Parks/MapServer/0"&gt;Layer: Parks and Recreation Areas (ID: 0)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here is the feature service of the same ()&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.orangeville.ca/arcgis/rest/services/Society/Parks/FeatureServer/0" title="https://gis.orangeville.ca/arcgis/rest/services/Society/Parks/FeatureServer/0"&gt;Layer: Parks and Recreation Areas (ID: 0)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="401211" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/401211_pastedImage_6.png" style="width: 620px; height: 293px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me figure this out, I'd like to build my popup with arcade expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE 1:&lt;/STRONG&gt; The error in firefox is &lt;SPAN style="color: #de2900; background-color: rgba(255, 255, 255, 0.8);"&gt;Execution Error:&lt;/SPAN&gt;e._profileGlobals is null (a little more helpful perhaps?!)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE 2:&lt;/STRONG&gt; I uploaded the feature class to AGOL hosted and still the same? here is the AGOL hosted item.&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://orangeville.maps.arcgis.com/home/item.html?id=887861850a3c402dae4f3ac8bff88e1f" title="https://orangeville.maps.arcgis.com/home/item.html?id=887861850a3c402dae4f3ac8bff88e1f"&gt;https://orangeville.maps.arcgis.com/home/item.html?id=887861850a3c402dae4f3ac8bff88e1f&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 14:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275909#M25451</guid>
      <dc:creator>AwesomeEvan</dc:creator>
      <dc:date>2018-04-12T14:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add any arcade expressions? No Globals? e._profileGlobals is null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275910#M25452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your items aren't shared with the public.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 15:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275910#M25452</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-04-12T15:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add any arcade expressions? No Globals? e._profileGlobals is null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275911#M25453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding it as a MapService URL instead of the layer id&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.orangeville.ca/arcgis/rest/services/Society/Parks/MapServer/" title="https://gis.orangeville.ca/arcgis/rest/services/Society/Parks/MapServer/"&gt;Society/Parks (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That&amp;nbsp;works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 15:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275911#M25453</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2018-04-12T15:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add any arcade expressions? No Globals? e._profileGlobals is null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275912#M25454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sry i didnt have anonymous access to our org... i opened it up...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 19:28:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275912#M25454</guid>
      <dc:creator>AwesomeEvan</dc:creator>
      <dc:date>2018-04-12T19:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add any arcade expressions? No Globals? e._profileGlobals is null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275913#M25455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does work!&lt;/P&gt;&lt;P&gt;However the same isnt true for the feature service?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arcade expressions only on AGS hosted map service root? That can't be?!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about getting it to work for an AGOL hosted feature services?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 19:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275913#M25455</guid>
      <dc:creator>AwesomeEvan</dc:creator>
      <dc:date>2018-04-12T19:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add any arcade expressions? No Globals? e._profileGlobals is null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275914#M25456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked the other day on feature service.&amp;nbsp; The AGOL update must've broke it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 21:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275914#M25456</guid>
      <dc:creator>JeffSegal</dc:creator>
      <dc:date>2018-04-12T21:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add any arcade expressions? No Globals? e._profileGlobals is null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275915#M25457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry that's a temp work around for now, should be fixed within a couple of days&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 21:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275915#M25457</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2018-04-12T21:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add any arcade expressions? No Globals? e._profileGlobals is null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275916#M25458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems, during the proxy restriction AGOL unable to initialize the Arcade Editor using&amp;nbsp;attribute collection with HTTPS (secured) service.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/401242_pastedImage_1.png" style="width: 620px; height: 35px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, you can perform the operation without Test it. Just click Ok, if expression is valid.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;$feature.BASEBALL&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/401255_pastedImage_2.png" style="width: 201px; height: 391px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 21:37:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275916#M25458</guid>
      <dc:creator>BalajiVeera</dc:creator>
      <dc:date>2018-04-12T21:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add any arcade expressions? No Globals? e._profileGlobals is null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275917#M25459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone... its working this morning as expected!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 13:37:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-add-any-arcade-expressions-no-globals-e/m-p/275917#M25459</guid>
      <dc:creator>AwesomeEvan</dc:creator>
      <dc:date>2018-04-13T13:37:51Z</dc:date>
    </item>
  </channel>
</rss>

