<?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: search() and pulldata() from feature service returning empty list and attributes in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1538406#M59174</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/108334"&gt;@MollyMoore&lt;/a&gt;&amp;nbsp;, does this happen in the desktop app or the web form version of the survey? I'm experiencing a similar problem right now&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2024 17:39:43 GMT</pubDate>
    <dc:creator>Chris3030</dc:creator>
    <dc:date>2024-09-13T17:39:43Z</dc:date>
    <item>
      <title>search() and pulldata() from feature service returning empty list and attributes</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1536965#M59027</link>
      <description>&lt;P&gt;I am setting up a survey to use the search() function to query a feature service layer to auto-populate values in a drop down for users to select. I then want other fields to auto-fill attributes in the Survey123&amp;nbsp; from the feature service layer with the pulldata() calculation. When I set up these functions, the list is empty and the pulldata() function (when tried separately) is also empty. The feature layer is in a referenced feature service hosted on our enterprise portal and the Survey123 form is being built in the same same portal. What am I doing wrong?&lt;/P&gt;&lt;P&gt;My search() expression in the appearance option:&lt;/P&gt;&lt;TABLE width="159"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="159"&gt;w2 autocomplete search("site_name_picker?url= https://&amp;lt;enterprise_url&amp;gt;/server/rest/services/PNHP/NHA_EDIT/FeatureServer/0")&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My pulldata() expression in the calculate option:&lt;/P&gt;&lt;TABLE width="344"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="344"&gt;pulldata("@layer", "getValue", "attributes.nha_join_id", "https://&amp;lt;enterprise_url&amp;gt;/server/rest/services/PNHP/NHA_EDIT/FeatureServer/0",concat("site_name='", ${site_name}, "'"))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached photos that show the .xlsx file and the blank drop down list.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="survey123_1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114707i68DFE837243A8818/image-size/large?v=v2&amp;amp;px=999" role="button" title="survey123_1.PNG" alt="survey123_1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="survey123_2.PNG" style="width: 420px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114708i9A34A666A91D4EDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="survey123_2.PNG" alt="survey123_2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="survey123_3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114709iF3712458FC2EBBA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="survey123_3.PNG" alt="survey123_3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 17:17:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1536965#M59027</guid>
      <dc:creator>MollyMoore</dc:creator>
      <dc:date>2024-09-10T17:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: search() and pulldata() from feature service returning empty list and attributes</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1537193#M59046</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/108334"&gt;@MollyMoore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax in your expressions looks good. A couple of things to check:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is "site_name" the exact name of the field in the feature layer with which you want to populate the choice list?&lt;/LI&gt;&lt;LI&gt;Does the signed in user have access to the feature layer?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Best, Jim&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 04:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1537193#M59046</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2024-09-11T04:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: search() and pulldata() from feature service returning empty list and attributes</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1537259#M59055</link>
      <description>&lt;P&gt;Pulldata does not like being included with other functions (concat, if, etc). You might want to try breaking up your pulldata into separate calculations:&lt;/P&gt;&lt;P&gt;1st question builds the where clause.&lt;/P&gt;&lt;P&gt;concat("site_name= '", ${site_name}, "'")&lt;/P&gt;&lt;P&gt;2nd question is the pulldata calculation.&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getRecord", "https://&amp;lt;enterprise_url&amp;gt;/server/rest/services/PNHP/NHA_EDIT/FeatureServer/0", ${where1}).&lt;/P&gt;&lt;P&gt;Along with what Jim mentioned, I would also check to ensure that query is enabled on the layer you are using with the search appearance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 12:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1537259#M59055</guid>
      <dc:creator>JenniferAcunto</dc:creator>
      <dc:date>2024-09-11T12:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: search() and pulldata() from feature service returning empty list and attributes</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1538406#M59174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/108334"&gt;@MollyMoore&lt;/a&gt;&amp;nbsp;, does this happen in the desktop app or the web form version of the survey? I'm experiencing a similar problem right now&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 17:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1538406#M59174</guid>
      <dc:creator>Chris3030</dc:creator>
      <dc:date>2024-09-13T17:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: search() and pulldata() from feature service returning empty list and attributes</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1538447#M59178</link>
      <description>&lt;P&gt;Mysteriously, everything started working after rebooting two days later without changes. I updated to separate the concat() function from the pulldata() function anyway, as you suggested&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/160974"&gt;@JenniferAcunto&lt;/a&gt;, and everything seems to be functioning well. Thank you for the tip and hopefully it will make things more stable.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 18:30:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1538447#M59178</guid>
      <dc:creator>MollyMoore</dc:creator>
      <dc:date>2024-09-13T18:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: search() and pulldata() from feature service returning empty list and attributes</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1538450#M59179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/815910"&gt;@Chris3030&lt;/a&gt;, I am using the desktop app and creating in Survey123 Connect. After two days, my functions mysteriously started working without changes. I did update my .xlsx to separate the functions as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/160974"&gt;@JenniferAcunto&lt;/a&gt;&amp;nbsp;suggested and things seem to be working well now.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 18:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1538450#M59179</guid>
      <dc:creator>MollyMoore</dc:creator>
      <dc:date>2024-09-13T18:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: search() and pulldata() from feature service returning empty list and attributes</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1691038#M65670</link>
      <description>&lt;P&gt;How would I use the pulldata calculation to search a feature layer for the same field name and update a different column in the feature layer when survey is submitted?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;both features are in the same map and have the same column name site.&amp;nbsp; When survey is submitted update site locations feature column inspection completed to yes with the matching site from the survey that was submitted.&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 15:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-from-feature-service-returning/m-p/1691038#M65670</guid>
      <dc:creator>TKSHEP</dc:creator>
      <dc:date>2026-03-17T15:38:36Z</dc:date>
    </item>
  </channel>
</rss>

