<?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 Calculated Value Expressions Getting Confused When Field Names Have Common Root in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1172183#M3341</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I'm having issues with field calculated on Android if they are in a certain field order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Android Samsung Galaxy S10+, Field maps 21.1.x and 22.2.0.&amp;nbsp; Not a problem on iOS that I have seen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This took a bit to track down, but I think I found the cause of the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Say I have a field named "service_date" that has a form calculation and another field called "service_date_override".&amp;nbsp; These field names have a common root... "service_date".&amp;nbsp; Another example is a field named "stationing" (a calculated value) and another field named "stationing_offset" which have a common root name of "stationing".&amp;nbsp; On Android if service_date appears after service_date_override in the form order, the valueExpression does not execute.&amp;nbsp; In fact all calculations below seem to not calculate.&amp;nbsp; Below you will see some examples of what is happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The order of fields as intended.&amp;nbsp; The valueExpression for the service_date field never fires (no animation either).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Original Field Order" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40943iC3BDB3036541DE04/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Maps_Android_Form_Calc_Issue_1.png" alt="Original Field Order" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Original Field Order&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Switching the field order in the form, the valueExpression for the service_date field fires as expected, albeit not in the order I want or that is logical for the user given that I have an override switch control editability of the service_date field.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reversed Field Order" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40944i9631661E7424D726/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Maps_Android_Form_Calc_Issue_2.png" alt="Reversed Field Order" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Reversed Field Order&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Finally, to confirm that this is the issue I added another date field between the to fields that have a common field name root that had a different name all together.&amp;nbsp; The valueExpression for the new field fires as expected, but again the service_date field does not calculate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Field_Maps_Android_Form_Calc_Issue_3.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40945iE0F083F30F8654B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Maps_Android_Form_Calc_Issue_3.png" alt="Field_Maps_Android_Form_Calc_Issue_3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 20:56:15 GMT</pubDate>
    <dc:creator>JustinReynolds</dc:creator>
    <dc:date>2022-05-09T20:56:15Z</dc:date>
    <item>
      <title>Calculated Value Expressions Getting Confused When Field Names Have Common Root</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1172183#M3341</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm having issues with field calculated on Android if they are in a certain field order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Android Samsung Galaxy S10+, Field maps 21.1.x and 22.2.0.&amp;nbsp; Not a problem on iOS that I have seen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This took a bit to track down, but I think I found the cause of the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Say I have a field named "service_date" that has a form calculation and another field called "service_date_override".&amp;nbsp; These field names have a common root... "service_date".&amp;nbsp; Another example is a field named "stationing" (a calculated value) and another field named "stationing_offset" which have a common root name of "stationing".&amp;nbsp; On Android if service_date appears after service_date_override in the form order, the valueExpression does not execute.&amp;nbsp; In fact all calculations below seem to not calculate.&amp;nbsp; Below you will see some examples of what is happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The order of fields as intended.&amp;nbsp; The valueExpression for the service_date field never fires (no animation either).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Original Field Order" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40943iC3BDB3036541DE04/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Maps_Android_Form_Calc_Issue_1.png" alt="Original Field Order" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Original Field Order&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Switching the field order in the form, the valueExpression for the service_date field fires as expected, albeit not in the order I want or that is logical for the user given that I have an override switch control editability of the service_date field.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reversed Field Order" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40944i9631661E7424D726/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Maps_Android_Form_Calc_Issue_2.png" alt="Reversed Field Order" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Reversed Field Order&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Finally, to confirm that this is the issue I added another date field between the to fields that have a common field name root that had a different name all together.&amp;nbsp; The valueExpression for the new field fires as expected, but again the service_date field does not calculate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Field_Maps_Android_Form_Calc_Issue_3.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40945iE0F083F30F8654B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Maps_Android_Form_Calc_Issue_3.png" alt="Field_Maps_Android_Form_Calc_Issue_3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1172183#M3341</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2022-05-09T20:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Value Expressions Getting Confused When Field Names Have Common Root</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1178921#M3705</link>
      <description>&lt;P&gt;Thanks for sharing Justin. A very similar thing is happening to us but in reverse. Works on Android, doesn't pull the calculations through on iOS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 09:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1178921#M3705</guid>
      <dc:creator>Woodpecker</dc:creator>
      <dc:date>2022-06-01T09:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Value Expressions Getting Confused When Field Names Have Common Root</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1178959#M3707</link>
      <description>&lt;P&gt;As a follow-up, I posted this in early adopters as well.&amp;nbsp; Esri was able to reproduce the issue;&amp;nbsp;I didn't get a bug number, but it is on their radar.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 13:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1178959#M3707</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2022-06-01T13:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Value Expressions Getting Confused When Field Names Have Common Root</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1182904#M3853</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;Tested on Android and the problem is there: if the calculated fields have names with a common root (in my case COD) then the calculations are ignored. I was breaking my head wondering why my arcade code wasn't working until I found this post and changed the field name to BAND_CODES instead of CODES_BAND to change the common root with other fields (CODES_TREES, CODES_DENDO).&lt;/P&gt;&lt;P&gt;Wao, I was going crazy trying to figure out what was happening. I hope the folks at FieldMaps fix this inconvenient bug.&lt;/P&gt;&lt;P&gt;Milton&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 20:28:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1182904#M3853</guid>
      <dc:creator>MiltonSolano</dc:creator>
      <dc:date>2022-06-14T20:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Value Expressions Getting Confused When Field Names Have Common Root</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1182908#M3854</link>
      <description>&lt;P&gt;This should be fixed with the next release planned for next week.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 20:33:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1182908#M3854</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-06-14T20:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Value Expressions Getting Confused When Field Names Have Common Root</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1188212#M3981</link>
      <description>&lt;P&gt;It is. I can confirm our issue that was happening on iOS is resolved now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if you guys have done anything to the performance of field calculations when entering data in map viewer, but it feels much more responsive!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 09:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-value-expressions-getting-confused-when/m-p/1188212#M3981</guid>
      <dc:creator>Woodpecker</dc:creator>
      <dc:date>2022-06-30T09:45:09Z</dc:date>
    </item>
  </channel>
</rss>

