<?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 Survey123 time calculation type mismatch in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-time-calculation-type-mismatch/m-p/1121424#M38940</link>
    <description>&lt;P&gt;Hi -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a type mismatch issue with some time calculations. I have an existing survey XLSForm which is formatted like this...the calculation works perfectly. The number of minutes elapsed is returned. In this instance, the user is prompted to enter two times in this format - XX:XX and then the third line determines minutes elapsed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erica_tefft_0-1638303251938.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28552iA5362D2A0518D797/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erica_tefft_0-1638303251938.png" alt="erica_tefft_0-1638303251938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to modify the survey to do some behind the scenes calculations so that field staff do not need to enter the colon (:) between hours and minutes (we want the time to be entered like XXXX).&lt;/P&gt;&lt;P&gt;I've modified the XLSForm to do this, and now my line 48, "Time_Elapsed" is throwing a type mismatch error. I can not figure out what I've done wrong as I feel like the results of line 43 (Interview_TimeColon) and line 47 (StartFishing_TimeColon) are not all that different from what was being input in the first 2 lines from the screen capture above (e.g. 10:45 vs. 1045, which is then calculated to 10:45).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erica_tefft_1-1638303251939.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28553iC7C5DE376FC4CDB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erica_tefft_1-1638303251939.png" alt="erica_tefft_1-1638303251939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Things I have tried -&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;changing 'type' column to calculate for all intermediate calculations (lines 41 to 43 &amp;amp; 45 to 47)&lt;/LI&gt;&lt;LI&gt;changing bind::type column to 'time' for lines 43 and 47 (second screen capture)&lt;/LI&gt;&lt;LI&gt;changing bind::esri:fieldType to 'null' for all intermediate calculations&lt;/LI&gt;&lt;LI&gt;changing bind::esri:fieldType for line 48 from integer to string to no bind::esri:fieldType&lt;/LI&gt;&lt;LI&gt;changing bind::esri:fieldType to 'date' for lines 43 and 47&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Does anyone have any suggestions? I also did test using the solution from &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/decimal-date-time-validation-issue/m-p/1117024" target="_blank" rel="noopener"&gt;this post&lt;/A&gt;, but it did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 20:23:23 GMT</pubDate>
    <dc:creator>erica_poisson</dc:creator>
    <dc:date>2021-11-30T20:23:23Z</dc:date>
    <item>
      <title>Survey123 time calculation type mismatch</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-time-calculation-type-mismatch/m-p/1121424#M38940</link>
      <description>&lt;P&gt;Hi -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a type mismatch issue with some time calculations. I have an existing survey XLSForm which is formatted like this...the calculation works perfectly. The number of minutes elapsed is returned. In this instance, the user is prompted to enter two times in this format - XX:XX and then the third line determines minutes elapsed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erica_tefft_0-1638303251938.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28552iA5362D2A0518D797/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erica_tefft_0-1638303251938.png" alt="erica_tefft_0-1638303251938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to modify the survey to do some behind the scenes calculations so that field staff do not need to enter the colon (:) between hours and minutes (we want the time to be entered like XXXX).&lt;/P&gt;&lt;P&gt;I've modified the XLSForm to do this, and now my line 48, "Time_Elapsed" is throwing a type mismatch error. I can not figure out what I've done wrong as I feel like the results of line 43 (Interview_TimeColon) and line 47 (StartFishing_TimeColon) are not all that different from what was being input in the first 2 lines from the screen capture above (e.g. 10:45 vs. 1045, which is then calculated to 10:45).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erica_tefft_1-1638303251939.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28553iC7C5DE376FC4CDB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erica_tefft_1-1638303251939.png" alt="erica_tefft_1-1638303251939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Things I have tried -&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;changing 'type' column to calculate for all intermediate calculations (lines 41 to 43 &amp;amp; 45 to 47)&lt;/LI&gt;&lt;LI&gt;changing bind::type column to 'time' for lines 43 and 47 (second screen capture)&lt;/LI&gt;&lt;LI&gt;changing bind::esri:fieldType to 'null' for all intermediate calculations&lt;/LI&gt;&lt;LI&gt;changing bind::esri:fieldType for line 48 from integer to string to no bind::esri:fieldType&lt;/LI&gt;&lt;LI&gt;changing bind::esri:fieldType to 'date' for lines 43 and 47&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Does anyone have any suggestions? I also did test using the solution from &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/decimal-date-time-validation-issue/m-p/1117024" target="_blank" rel="noopener"&gt;this post&lt;/A&gt;, but it did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 20:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-time-calculation-type-mismatch/m-p/1121424#M38940</guid>
      <dc:creator>erica_poisson</dc:creator>
      <dc:date>2021-11-30T20:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 time calculation type mismatch</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-time-calculation-type-mismatch/m-p/1121429#M38941</link>
      <description>&lt;P&gt;What about using the Input mask column with&amp;nbsp;99:99?&amp;nbsp; &amp;nbsp; May be easier and look nice.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1638304327223.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28554iA4ACB0FFCDE87964/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1638304327223.png" alt="DougBrowning_0-1638304327223.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 20:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-time-calculation-type-mismatch/m-p/1121429#M38941</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-11-30T20:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 time calculation type mismatch</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-time-calculation-type-mismatch/m-p/1122230#M38995</link>
      <description>&lt;P&gt;Wow - talk about overthinking something. Thank you! I haven't explored input masks yet - this is super handy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 15:59:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-time-calculation-type-mismatch/m-p/1122230#M38995</guid>
      <dc:creator>erica_poisson</dc:creator>
      <dc:date>2021-12-02T15:59:19Z</dc:date>
    </item>
  </channel>
</rss>

