<?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 Issue with pulldata function in Survey123 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-pulldata-function-in-survey123/m-p/845694#M21992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using survey123 to create a survey of all existing bus stops in a transit agency.&amp;nbsp; I am trying to create a way for the person filling out the survey to have the bus stop ID automatically filled in when the user selects the intersection of the two streets from a menu.&amp;nbsp; I have a csv with the intersection name &amp;amp; stop ID as the only 2 columns.&amp;nbsp; As far as I can tell I have designated the field 'number' in the csv as the value i want returned, I have designated 'name' as the field in the csv used to look up the value, finally I have used 'test' as the key field from the form used to look up the data.&amp;nbsp; Web link to survey is here ---&amp;gt;&lt;A class="link-titled" href="https://arcg.is/0Tj4CK" title="https://arcg.is/0Tj4CK"&gt;https://arcg.is/0Tj4CK&lt;/A&gt;&amp;nbsp;.&amp;nbsp; The web interface throws an error in the console that says "stop code", a heading I previously used for the number column in the csv, cannot be turned into a valid xml element.&amp;nbsp; I have changed this and it does not seem to have helped.&amp;nbsp; Any feedback on these problems is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 May 2019 20:47:45 GMT</pubDate>
    <dc:creator>tmtaplanning</dc:creator>
    <dc:date>2019-05-03T20:47:45Z</dc:date>
    <item>
      <title>Issue with pulldata function in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-pulldata-function-in-survey123/m-p/845694#M21992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using survey123 to create a survey of all existing bus stops in a transit agency.&amp;nbsp; I am trying to create a way for the person filling out the survey to have the bus stop ID automatically filled in when the user selects the intersection of the two streets from a menu.&amp;nbsp; I have a csv with the intersection name &amp;amp; stop ID as the only 2 columns.&amp;nbsp; As far as I can tell I have designated the field 'number' in the csv as the value i want returned, I have designated 'name' as the field in the csv used to look up the value, finally I have used 'test' as the key field from the form used to look up the data.&amp;nbsp; Web link to survey is here ---&amp;gt;&lt;A class="link-titled" href="https://arcg.is/0Tj4CK" title="https://arcg.is/0Tj4CK"&gt;https://arcg.is/0Tj4CK&lt;/A&gt;&amp;nbsp;.&amp;nbsp; The web interface throws an error in the console that says "stop code", a heading I previously used for the number column in the csv, cannot be turned into a valid xml element.&amp;nbsp; I have changed this and it does not seem to have helped.&amp;nbsp; Any feedback on these problems is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2019 20:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-pulldata-function-in-survey123/m-p/845694#M21992</guid>
      <dc:creator>tmtaplanning</dc:creator>
      <dc:date>2019-05-03T20:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with pulldata function in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-pulldata-function-in-survey123/m-p/845695#M21993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing your XLSForm and CSV files. It's likely the space in the "stop code" column header caused the XML error in the web app - please see &lt;A _jive_internal="true" href="https://community.esri.com/thread/231819-error-initializing-form-survey123#comment-845878"&gt;comments here&lt;/A&gt; on a related issue and also &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_A3C2F3566F974734B55ECECD31C6CA91"&gt;documented here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Looking at your XLSForm, the pulldata syntax is correct. However, select_one questions return the value from the &lt;STRONG&gt;name&lt;/STRONG&gt; column on the choices sheet, not its &lt;STRONG&gt;label&lt;/STRONG&gt;,&amp;nbsp;so the pulldata function is trying to match the intersection &lt;EM&gt;name&lt;/EM&gt;&amp;nbsp;in the csv with the number from the name column on the choices sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that in mind, you could use just the select_one (without the need for a pulldata csv) by&amp;nbsp;putting all the stop numbers in the name column on the choices sheet and their respective intersections in the label column. The user selects the intersection from a select_one question (e.g. 'stopnum'), and then the value (in this case the stop number in the name column) is written to another field by using ${stopnum} as the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, any queries please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 07:33:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-pulldata-function-in-survey123/m-p/845695#M21993</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2019-05-24T07:33:40Z</dc:date>
    </item>
  </channel>
</rss>

