<?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 pulldata is returning the word &amp;quot;null&amp;quot; instead of an actual null (empty cell) in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1538498#M59183</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am using a pulldata calculation to pull the value "camera_model" from another, related layer. My related layer is a hosted table that I uploaded from an .xlsx file.&lt;/P&gt;&lt;P&gt;My pulldata calculation says, "when the value of 'tag_id' in the survey matches the value of 'Collar_ID' in the hosted table, grab the value of 'Camera_Model' from the hosted table":&lt;/P&gt;&lt;P&gt;camera_model1 = pulldata("@layer", "getValue", "attributes.Camera_Model", "&lt;A href="https://services1.arcgis.com/...my_url.../0" target="_blank"&gt;https://services1.arcgis.com/...my_url.../0&lt;/A&gt;", concat('Collar_ID=', "'",${tag_id},"'"))&lt;/P&gt;&lt;P&gt;This is working fine when values are not blank, but when the field "Camera_Model" is empty, it returns the word "null" instead of just leaving the cell blank. &lt;STRONG&gt;This occurs only in the web app, where most of my users collect data, not the mobile app or Survey123 connect preview page.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is an issue – for example, my field ${drop_code} has an input mask of 2 letters gets filled with “nu”, which is an allowable value for that field and could be mistaken for real data.&lt;/P&gt;&lt;P&gt;I've tried some post-processing, e.g.,&lt;/P&gt;&lt;P&gt;Field ${camera_model} = if(string-length(${camera_model1}) &amp;gt; 0, ${camera_model1}, '') or&lt;/P&gt;&lt;P&gt;if(${camera_model1} != null, ${camera_model1}, ''), but this seems to actually remove values from some fields that should be auto-filled!&lt;/P&gt;&lt;P&gt;I attached a reproducible example using a publicly available layer. Note - “Location” field is filled with null in webapp (but is filled with nothing in mobile app).&lt;/P&gt;&lt;P&gt;Note - I haven't gotten any answers here, so I've sent this question into support. I'll update this post as I get more information.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 13:42:18 GMT</pubDate>
    <dc:creator>EricaNova</dc:creator>
    <dc:date>2024-09-16T13:42:18Z</dc:date>
    <item>
      <title>pulldata is returning the word "null" instead of an actual null (empty cell)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1538498#M59183</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am using a pulldata calculation to pull the value "camera_model" from another, related layer. My related layer is a hosted table that I uploaded from an .xlsx file.&lt;/P&gt;&lt;P&gt;My pulldata calculation says, "when the value of 'tag_id' in the survey matches the value of 'Collar_ID' in the hosted table, grab the value of 'Camera_Model' from the hosted table":&lt;/P&gt;&lt;P&gt;camera_model1 = pulldata("@layer", "getValue", "attributes.Camera_Model", "&lt;A href="https://services1.arcgis.com/...my_url.../0" target="_blank"&gt;https://services1.arcgis.com/...my_url.../0&lt;/A&gt;", concat('Collar_ID=', "'",${tag_id},"'"))&lt;/P&gt;&lt;P&gt;This is working fine when values are not blank, but when the field "Camera_Model" is empty, it returns the word "null" instead of just leaving the cell blank. &lt;STRONG&gt;This occurs only in the web app, where most of my users collect data, not the mobile app or Survey123 connect preview page.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is an issue – for example, my field ${drop_code} has an input mask of 2 letters gets filled with “nu”, which is an allowable value for that field and could be mistaken for real data.&lt;/P&gt;&lt;P&gt;I've tried some post-processing, e.g.,&lt;/P&gt;&lt;P&gt;Field ${camera_model} = if(string-length(${camera_model1}) &amp;gt; 0, ${camera_model1}, '') or&lt;/P&gt;&lt;P&gt;if(${camera_model1} != null, ${camera_model1}, ''), but this seems to actually remove values from some fields that should be auto-filled!&lt;/P&gt;&lt;P&gt;I attached a reproducible example using a publicly available layer. Note - “Location” field is filled with null in webapp (but is filled with nothing in mobile app).&lt;/P&gt;&lt;P&gt;Note - I haven't gotten any answers here, so I've sent this question into support. I'll update this post as I get more information.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 13:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1538498#M59183</guid>
      <dc:creator>EricaNova</dc:creator>
      <dc:date>2024-09-16T13:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: pulldata is returning the word "null" instead of an actual null (empty cell)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1539289#M59208</link>
      <description>&lt;P&gt;Can you wrap the pulldata function in coalesce()?&lt;/P&gt;&lt;P&gt;If value 1 is null, return value 2.&lt;/P&gt;&lt;P&gt;Value 2 can be a manual string "No camera found" and then relevancy applied on your other questions such as drop_code, so they don't fire.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 07:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1539289#M59208</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-09-17T07:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: pulldata is returning the word "null" instead of an actual null (empty cell)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1539417#M59214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/412943"&gt;@ChristopherCounsell&lt;/a&gt;&amp;nbsp;, thanks for the suggestion!&lt;/P&gt;&lt;P&gt;Two things:&lt;/P&gt;&lt;P&gt;1. ESRI recommends against calculations in the same cell with pulldata - apparently pulldata likes to "be on its own" so any other calculations that include that pulled data should happen in a second calculation row&lt;/P&gt;&lt;P&gt;2. I did try this, but in the web app the pulldata is actually returning the WORD "null", so my calculation "coalesce(pulldata("@layer", "getValue", "attributes.Location", "&lt;A href="https://services.arcgis.com/As5CFN3ThbQpy8Ph/arcgis/rest/services/Cities_in_Canada_/FeatureServer/0" target="_blank"&gt;https://services.arcgis.com/As5CFN3ThbQpy8Ph/arcgis/rest/services/Cities_in_Canada_/FeatureServer/0&lt;/A&gt;", concat('Geographical_Name=', "'",${Geographical_Name},"'")), '')" is still returning the word "null", since it is a non-empty value!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 12:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1539417#M59214</guid>
      <dc:creator>EricaNova</dc:creator>
      <dc:date>2024-09-17T12:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: pulldata is returning the word "null" instead of an actual null (empty cell)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1576976#M60879</link>
      <description>&lt;P&gt;Hi Erica,&lt;/P&gt;&lt;P&gt;I am wondering if you were ever able to resolve this issue?&amp;nbsp; We are seeing the same thing in one of our surveys.&amp;nbsp; Works fine in the app, but when users submit via a browser, it is populating the actual word 'null'.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 22:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1576976#M60879</guid>
      <dc:creator>JayForstner</dc:creator>
      <dc:date>2025-01-17T22:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: pulldata is returning the word "null" instead of an actual null (empty cell)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1577190#M60888</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/18467"&gt;@JayForstner&lt;/a&gt;&amp;nbsp;, ESRI logged a bug for this one,&amp;nbsp;BUG-000171024. I just checked the status, it is Open, and "Under Consideration" tagged with "Medium" severity. So no... I did not resolve it, I had to work around it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 14:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1577190#M60888</guid>
      <dc:creator>EricaNova</dc:creator>
      <dc:date>2025-01-20T14:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: pulldata is returning the word "null" instead of an actual null (empty cell)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1592142#M61538</link>
      <description>&lt;P&gt;Still under consideration, the suggested workaround works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/bug/in-the-arcgis-survey123-web-app-the-pulldatalayer-funct-bug-000171024" target="_blank"&gt;BUG-000171024 for ArcGIS Survey123&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 09:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-is-returning-the-word-quot-null-quot/m-p/1592142#M61538</guid>
      <dc:creator>AneteZvaigzneLV</dc:creator>
      <dc:date>2025-03-05T09:45:46Z</dc:date>
    </item>
  </channel>
</rss>

