<?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 expressions not working as expected or erroring in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267239#M5551</link>
    <description>&lt;P&gt;Yes this will work as long as you have both layers and the features needed in the map and part of the offline area.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 18:39:58 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2023-03-13T18:39:58Z</dc:date>
    <item>
      <title>Arcade expressions not working as expected or erroring</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267032#M5546</link>
      <description>&lt;P&gt;Hello, We have developed a Field Map with a couple of Forms included and within the form we have 7 Arcade expressions to auto fill the fields. They are all simple expressions, such as getting user details or intersects to other layers within the web map. We have had to disable most of them as they don't always calculate in the field. They work fine in the office on Wi-Fi and mobile data. What could be the possible issue?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;regions&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$map&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Regions Operational"&lt;/SPAN&gt;&lt;SPAN&gt;, [&lt;/SPAN&gt;&lt;SPAN&gt;'Name'&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Intersect the current location with the regions and &lt;/SPAN&gt;&lt;SPAN&gt;get the first region&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;region&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;First&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Intersects&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;regions&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// If the current location does intersect a feature,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return the name of the region. Otherwise, return null&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (!&lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;region&lt;/SPAN&gt;&lt;SPAN&gt;)) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;region&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'Name'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;null&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:47:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267032#M5546</guid>
      <dc:creator>BarryKeight</dc:creator>
      <dc:date>2023-03-13T12:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expressions not working as expected or erroring</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267130#M5549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have similar expressions set up and we are just going to be starting offline surveys. When you say the expressions don't always calculate do they show consistently with the red message 'failed to calculate' in the layer form?&lt;/P&gt;&lt;P&gt;How are you downloading/creating the offline map areas? We did recently log a &lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-calculation/m-p/1263590#M5473" target="_self"&gt;bug/defect&lt;/A&gt; in that the&amp;nbsp; offline map generated from the AGOL web map settings, when we opened the form 2 of the calculated expressions did not work. However when we download an offline map using the device to create the offline map these expressions DO work. So something is happening when the maps are packaged up.&lt;/P&gt;&lt;P&gt;Also we are using AGOL and iOS, what environment and device are you using?&lt;/P&gt;&lt;P&gt;We work 100% offline and this is the first go of using these expressions in all the layer forms, so I'm hoping they are reliable, but at the same time already logged a defect.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kathy&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267130#M5549</guid>
      <dc:creator>kmsmikrud</dc:creator>
      <dc:date>2023-03-13T15:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expressions not working as expected or erroring</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267239#M5551</link>
      <description>&lt;P&gt;Yes this will work as long as you have both layers and the features needed in the map and part of the offline area.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 18:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267239#M5551</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-03-13T18:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expressions not working as expected or erroring</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267428#M5556</link>
      <description>&lt;P&gt;We have set this is up to work both on and off line and we have tried it on both iOS &amp;amp; Android and it had no issues under testing. When it was rolled out we had initial comments that not all the auto calculated fields (required fields) worked and therefore stopped the user being able to submit the form.&lt;/P&gt;&lt;P&gt;At present they are turned off and we are looking at having to post process. Which isn't really useful for saving time and resource.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 08:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267428#M5556</guid>
      <dc:creator>BarryKeight</dc:creator>
      <dc:date>2023-03-14T08:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expressions not working as expected or erroring</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267526#M5558</link>
      <description>&lt;P&gt;It is only some users then?&amp;nbsp; I wonder if their apps are out of date?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1267526#M5558</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-03-14T13:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expressions not working as expected or erroring</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1268431#M5567</link>
      <description>&lt;P&gt;We have two users trialling the new version and they have one of both mobile OS, both of which are up to date.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 11:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1268431#M5567</guid>
      <dc:creator>BarryKeight</dc:creator>
      <dc:date>2023-03-16T11:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expressions not working as expected or erroring</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1268433#M5568</link>
      <description>&lt;P&gt;Hi Kathy, did you only experience issues offline?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 11:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1268433#M5568</guid>
      <dc:creator>BarryKeight</dc:creator>
      <dc:date>2023-03-16T11:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expressions not working as expected or erroring</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1517664#M9265</link>
      <description>&lt;P&gt;I am having the exact issue- both device and app are updated, I've tested on both Android and iOS, the data expressions are super simple and work fine on laptop but on device- they will not calculate and that then prevents user from submitting form?&amp;nbsp; Any Solutions ESRI?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 18:58:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expressions-not-working-as-expected-or/m-p/1517664#M9265</guid>
      <dc:creator>BClaridge</dc:creator>
      <dc:date>2024-08-09T18:58:50Z</dc:date>
    </item>
  </channel>
</rss>

