<?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: Field Calculation using Arcade overwrites Creator and CreationDate fields? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030151#M38650</link>
    <description>&lt;P&gt;That certainly seems buggy.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 19:27:02 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2021-02-24T19:27:02Z</dc:date>
    <item>
      <title>Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030116#M38649</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Update: 03/01/21 - Esri Support confirmed this is a defect. The reference number is #BUG-000137820 and its synopsis states, "Using Calculate Field with Arcade results in the Creator and Create Date being overwritten to that time/user."&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2/25/21 - I opened a Support Ticket this morning Esri Case #02748861 and will post back here when we know more.&lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Real-world Problem:&lt;/STRONG&gt; We wanted to add Census Tract IDs to existing points on a layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Technical Problem:&lt;/STRONG&gt; Using Arcade Field Calculation as per&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/calculate-fields.htm" target="_blank" rel="noopener"&gt;Calculate field values—ArcGIS Online Help | Documentation&lt;/A&gt;&amp;nbsp;on an ArcGIS Online hosted feature layer updated the Creator and Creation Date fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We expected it to update the Editor and Edit Date - but since we did not create or overwrite fields, we did not expect it to change the creation fields. This is problematic because we now lost the history of who created each point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this expected behavior or a defect? Should I open an Esri Support Case?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tested this is in Firefox and Edge with ANY Arcade expression in a string field, even a simple one like = ' '. I've tested with both points and line features created using ArcGIS Online hosted feature layers.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaulDohertyFEMA_0-1614191053594.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6806iFCD08625D433222F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaulDohertyFEMA_0-1614191053594.png" alt="PaulDohertyFEMA_0-1614191053594.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="PaulDohertyFEMA_2-1614191275322.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6808iAEF181CB685D2CD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaulDohertyFEMA_2-1614191275322.png" alt="PaulDohertyFEMA_2-1614191275322.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="PaulDohertyFEMA_1-1614191188503.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6807iD3A00E72085DB680/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaulDohertyFEMA_1-1614191188503.png" alt="PaulDohertyFEMA_1-1614191188503.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;p.s. this did not happen with an SQL expression when tested.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/72441"&gt;@ArcGISOnline&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 00:43:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030116#M38649</guid>
      <dc:creator>PaulDohertyFEMA</dc:creator>
      <dc:date>2021-03-02T00:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030151#M38650</link>
      <description>&lt;P&gt;That certainly seems buggy.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 19:27:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030151#M38650</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-02-24T19:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030408#M38667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/428684"&gt;@PaulDohertyFEMA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I would definitely open a support case and have this logged. This is not supposed to happen (IMHO).&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 13:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030408#M38667</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-02-25T13:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030469#M38670</link>
      <description>&lt;P&gt;In this post,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/435788"&gt;@pmckinney&lt;/a&gt;&amp;nbsp; mentions "&lt;STRONG&gt;&lt;EM&gt;Because we have editor tracking set, we are not able to use Arcade expressions"&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;when discussing the use of SQL in AGOL field calculations.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 15:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030469#M38670</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-02-25T15:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030531#M38673</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3374"&gt;@JoeBorgione&lt;/a&gt;&amp;nbsp;That's right, if either of these options are enabled, you will not be able to run an Arcade calculation (SQL will still work though).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlixVezina_0-1614271512915.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6927i28F826873675FFCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlixVezina_0-1614271512915.png" alt="AlixVezina_0-1614271512915.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlixVezina_1-1614271531577.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6928i7BF72AC0F64555E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlixVezina_1-1614271531577.png" alt="AlixVezina_1-1614271531577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 16:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1030531#M38673</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2021-02-25T16:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1031751#M38718</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Update: &lt;/STRONG&gt;03/01/21 - Esri Support confirmed this is a defect. The reference number is #BUG-000137820 and its synopsis states, "Using Calculate Field with Arcade results in the Creator and Create Date being overwritten to that time/user."&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 00:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1031751#M38718</guid>
      <dc:creator>PaulDohertyFEMA</dc:creator>
      <dc:date>2021-03-02T00:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1032082#M38736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/428684"&gt;@PaulDohertyFEMA&lt;/a&gt;&amp;nbsp;, thanks for sharing. Hopefully, it will be fixed soon!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 19:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1032082#M38736</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-03-02T19:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1039043#M39073</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;Thanks for submitting this BUG and sharing. I had the same thing happen to me and it was so nerve wracking trying to figure out what happened. I filed a tech support case, but in the process we weren't able to reproduce the BUG, but I think it was now because we weren't using a layer that editor tracking enabled for our test.&lt;/P&gt;&lt;P&gt;This morning I had the same thing happen when I used an arcade expression to update a field in a view.&lt;/P&gt;&lt;P&gt;I am simply trying to use a field to symbolize by the number of attachments and was using arcade for the Photo Count field based on the &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/visualize-your-attachments-in-arcgis-online-with-arcade/" target="_self"&gt;ArcGIS Blog article.&lt;/A&gt;&amp;nbsp; In the process of using this on a feature layer from last year all the records then updated to myself as the Creator, Editor, and dates!!! This was really disturbing and luckily we had a local backup.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get the number of attachments
Getting the total number of attachments per feature comes in handy when trying to identify what assets might be missing visual information, such as photos to support asset condition surveys.  The fastest way to get this information is to chain the new Attachments() function with the Count() function.

//returns the number of attachments per feature
Count(Attachments($feature))&lt;/LI-CODE&gt;&lt;P&gt;I'm not sure if SQL can be used in get a feature count. Anyway thanks for the update and reporting the bug. AGOL has an incredible amount of bugs.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kathy&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 20:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1039043#M39073</guid>
      <dc:creator>kmsmikrud</dc:creator>
      <dc:date>2021-03-20T20:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1193898#M47043</link>
      <description>&lt;P&gt;The BUG is still alive and well, as all who have posted here are likely aware.&amp;nbsp; It just presented itself to me, not that the CreationDate wasn't important when we first started collecting data, we just were not monitoring the field values and did not need to rely on it until recently.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do think it would be prudent for Esri to add a warning to the calc splash screen that if you use Arcade these field values will be changed to the current date, share a link to the bug description, and suggesting SQL in these instances.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kate&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1193898#M47043</guid>
      <dc:creator>KateCarlson</dc:creator>
      <dc:date>2022-07-20T13:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation using Arcade overwrites Creator and CreationDate fields?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1194638#M47074</link>
      <description>&lt;P&gt;Correction, bug fixed in the March 2022&amp;nbsp; update.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 20:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/field-calculation-using-arcade-overwrites-creator/m-p/1194638#M47074</guid>
      <dc:creator>KateCarlson</dc:creator>
      <dc:date>2022-07-21T20:21:58Z</dc:date>
    </item>
  </channel>
</rss>

