<?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 calculation based on date no longer working inside repeat in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-date-no-longer-working-inside/m-p/1506429#M57949</link>
    <description>&lt;P&gt;The following calculation has worked perfectly for years, to create a unique SampleID for each record inside a repeat (BATCHDATE is the survey start date):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;concat('BA ', format-date(${BATCHDATE}, '%Y%m%d '), format-date(once(now()), '%H%M%S%3'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;All other calculations inside the repeat are working as expected. No others are based on dates.&amp;nbsp; Given there have been a few weird things going with dates &amp;amp; repeats lately, I assume that's the problem.&amp;nbsp;&amp;nbsp;This issue started sometime after 6/11, which is the last time my sample ID's calculated correctly.&lt;/P&gt;&lt;P&gt;Nothing is calculated, it is just Null.&lt;/P&gt;&lt;P&gt;I'm running Connect 3.20.63 and Field App 3.19.121&lt;/P&gt;&lt;P&gt;Xlsform attached for reference.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 23:39:55 GMT</pubDate>
    <dc:creator>LynnBerni</dc:creator>
    <dc:date>2024-07-17T23:39:55Z</dc:date>
    <item>
      <title>calculation based on date no longer working inside repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-date-no-longer-working-inside/m-p/1506429#M57949</link>
      <description>&lt;P&gt;The following calculation has worked perfectly for years, to create a unique SampleID for each record inside a repeat (BATCHDATE is the survey start date):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;concat('BA ', format-date(${BATCHDATE}, '%Y%m%d '), format-date(once(now()), '%H%M%S%3'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;All other calculations inside the repeat are working as expected. No others are based on dates.&amp;nbsp; Given there have been a few weird things going with dates &amp;amp; repeats lately, I assume that's the problem.&amp;nbsp;&amp;nbsp;This issue started sometime after 6/11, which is the last time my sample ID's calculated correctly.&lt;/P&gt;&lt;P&gt;Nothing is calculated, it is just Null.&lt;/P&gt;&lt;P&gt;I'm running Connect 3.20.63 and Field App 3.19.121&lt;/P&gt;&lt;P&gt;Xlsform attached for reference.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 23:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-date-no-longer-working-inside/m-p/1506429#M57949</guid>
      <dc:creator>LynnBerni</dc:creator>
      <dc:date>2024-07-17T23:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: calculation based on date no longer working inside repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-date-no-longer-working-inside/m-p/1512872#M58231</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Identify the Issue:&lt;/STRONG&gt; Confirm that your date-based calculation is not functioning as expected within the repeat structure.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check Data Types:&lt;/STRONG&gt; Ensure the date fields used in calculations are in the correct format (e.g., Date, DateTime).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Review Repeat Settings:&lt;/STRONG&gt; Verify that the repeat settings in your application or tool are correctly configured to handle date calculations.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Debug Calculation Logic:&lt;/STRONG&gt; Inspect the logic used for calculations to ensure it is valid and does not conflict with the repeat functionality.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Update Dependencies:&lt;/STRONG&gt; Make sure that all libraries or frameworks related to date handling and repeats are up to date.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Test in Isolation:&lt;/STRONG&gt; Run the date calculations like &lt;A href="https://thecrscalculator.ca/" target="_self"&gt;crs&lt;/A&gt; outside the repeat structure to confirm they work independently.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Review Documentation:&lt;/STRONG&gt; Consult the documentation for the specific tool or platform you’re using to check for known issues or limitations.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check for Errors:&lt;/STRONG&gt; Look for any error messages or logs that might indicate what is causing the problem.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Simplify Logic:&lt;/STRONG&gt; Try simplifying the calculation to identify if a specific part of the logic is causing the issue.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Seek Community Help:&lt;/STRONG&gt; Look for forums or community discussions related to the tool or language you’re using for similar issues.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Consider Cataz Tools:&lt;/STRONG&gt; Explore Cataz-Net or similar resources for advanced date handling and calculation solutions.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Implement a Workaround:&lt;/STRONG&gt; If the issue persists, consider using alternative methods or workarounds to achieve the desired result while awaiting a fix or update.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jul 2024 11:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-date-no-longer-working-inside/m-p/1512872#M58231</guid>
      <dc:creator>albexulpoer</dc:creator>
      <dc:date>2024-07-31T11:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: calculation based on date no longer working inside repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-date-no-longer-working-inside/m-p/1564399#M60349</link>
      <description>&lt;P&gt;Hello S123 community,&lt;/P&gt;&lt;P&gt;This problem is unresolved for me.&amp;nbsp; My SampleIDs are not being calculated. I have to go in and add them manually.&amp;nbsp; Does anyone have an idea as to what changed and how I can fix this?&amp;nbsp; &amp;nbsp;The formula works as expected for other sample data that we collect, that are NOT in a repeat.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect&amp;nbsp; 3.21.62&lt;BR /&gt;Field Apps&amp;nbsp; 3.21.62&lt;/P&gt;&lt;P&gt;HELP!!&lt;/P&gt;&lt;P&gt;Thanks, Lynn&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 21:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-date-no-longer-working-inside/m-p/1564399#M60349</guid>
      <dc:creator>LynnBerni</dc:creator>
      <dc:date>2024-12-03T21:25:47Z</dc:date>
    </item>
  </channel>
</rss>

