<?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: Error Converting XLS Form - PullData Function in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1284884#M49013</link>
    <description>&lt;P&gt;Screenshot of remainder of error message.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-05-02 120831.png" style="width: 770px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69683iC31BD62FE2751F61/image-dimensions/770x129?v=v2" width="770" height="129" role="button" title="Screenshot 2023-05-02 120831.png" alt="Screenshot 2023-05-02 120831.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 19:12:21 GMT</pubDate>
    <dc:creator>CLillard</dc:creator>
    <dc:date>2023-05-02T19:12:21Z</dc:date>
    <item>
      <title>Error Converting XLS Form - PullData Function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1284882#M49012</link>
      <description>&lt;P&gt;Trying to implement the Pulldata function to automatically fill select fields. When I try to save my survey123 form I keep getting the error "Error converting XLS Form - Form is invalid. See above for errors: /norg.javarosa.xform.parse.XFormParseException: Invalid calculate for the bind attached to "$(date_last_capture)": Couldn't understand the expression starting at this point.. (see screenshot)."&lt;/P&gt;&lt;P&gt;Help! Attached my survey form and external CSV.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 19:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1284882#M49012</guid>
      <dc:creator>CLillard</dc:creator>
      <dc:date>2023-05-02T19:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error Converting XLS Form - PullData Function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1284884#M49013</link>
      <description>&lt;P&gt;Screenshot of remainder of error message.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-05-02 120831.png" style="width: 770px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69683iC31BD62FE2751F61/image-dimensions/770x129?v=v2" width="770" height="129" role="button" title="Screenshot 2023-05-02 120831.png" alt="Screenshot 2023-05-02 120831.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 19:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1284884#M49013</guid>
      <dc:creator>CLillard</dc:creator>
      <dc:date>2023-05-02T19:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error Converting XLS Form - PullData Function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1284905#M49014</link>
      <description>&lt;P&gt;I think it because the pulldata will return a string not a date.&amp;nbsp; You will probably need to have this pulldata in a temp field then use&amp;nbsp;date-time(question, expression, or string) Converts a number or string to a date object. to convert it for the question.&lt;/P&gt;&lt;P&gt;I also see your Label columns have errors.&amp;nbsp; Probably because you did a copy paste from the name column?&amp;nbsp; Always use paste values in excel or it will cause a big mess.&lt;/P&gt;&lt;P&gt;Hope that does it&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 19:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1284905#M49014</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-05-02T19:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error Converting XLS Form - PullData Function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1284929#M49015</link>
      <description>&lt;P&gt;I don't completely understand what you are saying. Can you show an example? Also, I'd like to add that I get the same error when trying to pull data for the 2nd field which is 'sex'. That is just a string so not sure why it is throwing that error.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 20:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1284929#M49015</guid>
      <dc:creator>CLillard</dc:creator>
      <dc:date>2023-05-02T20:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error Converting XLS Form - PullData Function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1285017#M49020</link>
      <description>&lt;P&gt;Well that was not it you had several other issues.&lt;/P&gt;&lt;P&gt;First you have a missing quote and a random paren here&lt;/P&gt;&lt;P&gt;pulldata('SnakeLookup', 'LastCaptured, 'BrandID', (${brand_number})&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;pulldata('SnakeLookup', 'LastCaptured', 'BrandID', ${brand_number})&lt;/P&gt;&lt;P&gt;Next 123 requires the date to look like this&lt;/P&gt;&lt;P&gt;date('2017-05-28T04:39:02+10:00') see&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then when I tried&amp;nbsp;2023-05-02 it was converting that from UTC time (even thought date should ignore time) and thus you got 5-1.&amp;nbsp; So instead I set the time to noon like this&amp;nbsp;2023-05-02T12:00.&lt;/P&gt;&lt;P&gt;Next for sex you are mixing and matching case&amp;nbsp; in the name and label.&amp;nbsp; You have to be exact.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1683068385883.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69715iC67445925047A44F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1683068385883.png" alt="DougBrowning_0-1683068385883.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;123 always stores and uses the name not the label.&amp;nbsp; Your csv has Unknown and so it was not a match to unknown.&amp;nbsp; I strongly suggest you keep the case the same in both the name and label or it will drive you nuts forever.&amp;nbsp; I really wish 123 would fix the template that has yes and Yes its really bad form.&lt;/P&gt;&lt;P&gt;You also pasted all the formulas into the label.&amp;nbsp; Be careful with that.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached for this working.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 23:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/error-converting-xls-form-pulldata-function/m-p/1285017#M49020</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-05-02T23:03:40Z</dc:date>
    </item>
  </channel>
</rss>

