<?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: Repeat Calculation Issues when Editing Data Through the Inbox in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-calculation-issues-when-editing-data/m-p/1547543#M59583</link>
    <description>&lt;P&gt;I use once(count()) and it has been the most consistent over the years.&lt;/P&gt;&lt;P&gt;Note it will never be perfect.&amp;nbsp; If a user goes back a few repeats and deletes a record the next one they create will be a dup.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2024 12:23:38 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2024-10-10T12:23:38Z</dc:date>
    <item>
      <title>Repeat Calculation Issues when Editing Data Through the Inbox</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-calculation-issues-when-editing-data/m-p/1547312#M59566</link>
      <description>&lt;P&gt;I have a feature service that is made up of a point layer and a related polygon layer.&amp;nbsp; Using the repeat count formula, I generate a Field ID for and polygons that are added.&amp;nbsp; The Field ID is a concatenation of a Site ID attribute and the repeat count.&amp;nbsp; For example: OSRI24_1234_1,&amp;nbsp;OSRI24_1234_2, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DJB_0-1728501987312.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116906i1BDFC4FFD4E8D80D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DJB_0-1728501987312.png" alt="DJB_0-1728501987312.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="DJB_1-1728502097971.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116907i3A7DCB24B6BBE30A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DJB_1-1728502097971.png" alt="DJB_1-1728502097971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This works great!&amp;nbsp; The problem begins when a user reopens a previously submitted survey through the Inbox.&amp;nbsp; Let's say the Status of the work needs to be updated or cropping information needs to be updated.&amp;nbsp; When the user opens the survey, the Field IDs automatically get changed.&amp;nbsp; Using the Field ID examples from above, if I wanted to edit&amp;nbsp;OSRI24_1234_1 record it has now become&amp;nbsp;OSRI24_1234_2 because it's still using the concatenate calculation.&lt;/P&gt;&lt;P&gt;So technically it is doing what I told it to do but at the same time it is over writing the original "correct" ID with the wrong ID.&lt;/P&gt;&lt;P&gt;How do I preserve that original Field ID that was captured?&lt;/P&gt;&lt;P&gt;Is there no way to access the repeat count from the Survey123 app itself?&amp;nbsp; It's clearly stored and displayed correctly here.&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="DJB_3-1728502703412.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116915i695D60EAFD2019AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DJB_3-1728502703412.png" alt="DJB_3-1728502703412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The screen grab below illustrates my issue.&amp;nbsp; In this example I'm looking at the first repeat that was added but the Field ID is DanB_Test_2.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DJB_4-1728502929112.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116916i7FDE298FA01A84F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DJB_4-1728502929112.png" alt="DJB_4-1728502929112.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, I basically cannot edit any of my data while using Survey123's Inbox.&lt;/P&gt;&lt;P&gt;Any assistance or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 19:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-calculation-issues-when-editing-data/m-p/1547312#M59566</guid>
      <dc:creator>DJB</dc:creator>
      <dc:date>2024-10-09T19:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Calculation Issues when Editing Data Through the Inbox</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-calculation-issues-when-editing-data/m-p/1547340#M59568</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;How do I preserve that original Field ID that was captured?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Have you tried &lt;STRONG&gt;calculationMode=whenEmpty&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;repeat count&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;use &lt;STRONG&gt;count(${your_repeat_name})&lt;/STRONG&gt; outside of the repeat&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 20:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-calculation-issues-when-editing-data/m-p/1547340#M59568</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-10-09T20:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Calculation Issues when Editing Data Through the Inbox</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-calculation-issues-when-editing-data/m-p/1547543#M59583</link>
      <description>&lt;P&gt;I use once(count()) and it has been the most consistent over the years.&lt;/P&gt;&lt;P&gt;Note it will never be perfect.&amp;nbsp; If a user goes back a few repeats and deletes a record the next one they create will be a dup.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 12:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-calculation-issues-when-editing-data/m-p/1547543#M59583</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-10-10T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Calculation Issues when Editing Data Through the Inbox</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-calculation-issues-when-editing-data/m-p/1547548#M59584</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454586"&gt;@abureaux&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;My repeat count is definitely outside the repeat.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DJB_0-1728518825736.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116948i3657C2B82D42FB2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DJB_0-1728518825736.png" alt="DJB_0-1728518825736.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As for your initial suggestion, I honestly have not tried that.&amp;nbsp; I had never heard of calculation modes before.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-calculation-modes/ba-p/1206967" target="_blank"&gt;Survey123 Tricks of the Trade: Calculation modes (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After doing some research I implemented your suggestion with a minor tweak.&amp;nbsp; I used&amp;nbsp;&lt;STRONG&gt;calculationMode=auto&lt;/STRONG&gt; and it seemed to fix my issue.&amp;nbsp; I'll monitor it over the next couple days, but I am very optimistically hopeful.&lt;/P&gt;&lt;P&gt;Thank you very much for the suggestion and help.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;~Dan&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 12:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-calculation-issues-when-editing-data/m-p/1547548#M59584</guid>
      <dc:creator>DJB</dc:creator>
      <dc:date>2024-10-10T12:52:03Z</dc:date>
    </item>
  </channel>
</rss>

