<?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 No result from pulldata @layer with where clause with scanned barcode value in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/no-result-from-pulldata-layer-with-where-clause/m-p/1319259#M51245</link>
    <description>&lt;P&gt;I'm having trouble pulling data from a feature layer in AGO into my survey123 connect using a barcode to get the where clause value. When I hard code the id into the where clause rather than referencing it by the barcode variable, it pulls the JSON from AGO. I've added checks into the survey and the where clause that is built using concat() to combine the query with the value from the barcode appears the same as when I hard code the value. Attached is an example from my xlsform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested the survey on my iPhone and scanned a barcode on the computer screen that I created using a free online generator:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="barcode.gif" style="width: 100px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78246i0E89C12722E52FA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="barcode.gif" alt="barcode.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why the barcode is not working for pulling the feature layer JSON?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 18:04:25 GMT</pubDate>
    <dc:creator>AlexaTodd</dc:creator>
    <dc:date>2023-08-16T18:04:25Z</dc:date>
    <item>
      <title>No result from pulldata @layer with where clause with scanned barcode value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/no-result-from-pulldata-layer-with-where-clause/m-p/1319259#M51245</link>
      <description>&lt;P&gt;I'm having trouble pulling data from a feature layer in AGO into my survey123 connect using a barcode to get the where clause value. When I hard code the id into the where clause rather than referencing it by the barcode variable, it pulls the JSON from AGO. I've added checks into the survey and the where clause that is built using concat() to combine the query with the value from the barcode appears the same as when I hard code the value. Attached is an example from my xlsform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested the survey on my iPhone and scanned a barcode on the computer screen that I created using a free online generator:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="barcode.gif" style="width: 100px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78246i0E89C12722E52FA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="barcode.gif" alt="barcode.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why the barcode is not working for pulling the feature layer JSON?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 18:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/no-result-from-pulldata-layer-with-where-clause/m-p/1319259#M51245</guid>
      <dc:creator>AlexaTodd</dc:creator>
      <dc:date>2023-08-16T18:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: No result from pulldata @layer with where clause with scanned barcode value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/no-result-from-pulldata-layer-with-where-clause/m-p/1320893#M51323</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/366895"&gt;@AlexaTodd&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;When the where clause is created with a function like concat() it doesn't need to be wrapped in double quotes since the output is already a string. The extra quotes were being included in the feature layer request and causing issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this calculation for the layer_json1 calculation and am seeing the query run successfully.:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pulldata("@layer", "getRecord", "&lt;A href="https://services2.arcgis.com/McQ0OlIABe29rJJy/arcgis/rest/services/SurveyExampleLayer/FeatureServer/0" target="_blank"&gt;https://services2.arcgis.com/McQ0OlIABe29rJJy/arcgis/rest/services/SurveyExampleLayer/FeatureServer/0&lt;/A&gt;", concat('sharps_box_globalid=', "'",${BarcodeID},"'"))&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Barbara&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 20:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/no-result-from-pulldata-layer-with-where-clause/m-p/1320893#M51323</guid>
      <dc:creator>BarbaraWebster1</dc:creator>
      <dc:date>2023-08-21T20:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: No result from pulldata @layer with where clause with scanned barcode value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/no-result-from-pulldata-layer-with-where-clause/m-p/1320907#M51325</link>
      <description>&lt;P&gt;Thank you for your response! It worked to remove the extra quotes. And simpler too. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 20:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/no-result-from-pulldata-layer-with-where-clause/m-p/1320907#M51325</guid>
      <dc:creator>AlexaTodd</dc:creator>
      <dc:date>2023-08-21T20:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: No result from pulldata @layer with where clause with scanned barcode value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/no-result-from-pulldata-layer-with-where-clause/m-p/1320910#M51326</link>
      <description>&lt;P&gt;No problem, glad to hear it's working now!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 20:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/no-result-from-pulldata-layer-with-where-clause/m-p/1320910#M51326</guid>
      <dc:creator>BarbaraWebster1</dc:creator>
      <dc:date>2023-08-21T20:49:59Z</dc:date>
    </item>
  </channel>
</rss>

