<?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 Unselected Records returning Null for field in Data Pipelines Questions</title>
    <link>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594398#M143</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$record&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;size&lt;/SPAN&gt;&lt;SPAN&gt; != &lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;$record&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;material&lt;/SPAN&gt;&lt;SPAN&gt; != &lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;$record&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;verifdate&lt;/SPAN&gt;&lt;SPAN&gt; ==&lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$record&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;survey_date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The above expression is used within a calculate field parameter.&amp;nbsp; My test data set has 16 records where all 16 records have the size and material populated.&amp;nbsp; 6 of the 16 records have a verifdate populated so they are not null.&amp;nbsp; The expression is looking for records where size and material is populated but the verifdate is not populated so the date can be updated from a joined S123 table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I run or preview the DP, the calculate does populate the date for the 10 fields where verfidate is null, but it is changing the 6 fields with existing dates to Null.&amp;nbsp; Those 6 fields are not in the selection criteria.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thoughts? Thanks&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 11 Mar 2025 18:10:56 GMT</pubDate>
    <dc:creator>JeffreyHinderliter</dc:creator>
    <dc:date>2025-03-11T18:10:56Z</dc:date>
    <item>
      <title>Unselected Records returning Null for field</title>
      <link>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594398#M143</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$record&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;size&lt;/SPAN&gt;&lt;SPAN&gt; != &lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;$record&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;material&lt;/SPAN&gt;&lt;SPAN&gt; != &lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;$record&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;verifdate&lt;/SPAN&gt;&lt;SPAN&gt; ==&lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$record&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;survey_date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The above expression is used within a calculate field parameter.&amp;nbsp; My test data set has 16 records where all 16 records have the size and material populated.&amp;nbsp; 6 of the 16 records have a verifdate populated so they are not null.&amp;nbsp; The expression is looking for records where size and material is populated but the verifdate is not populated so the date can be updated from a joined S123 table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I run or preview the DP, the calculate does populate the date for the 10 fields where verfidate is null, but it is changing the 6 fields with existing dates to Null.&amp;nbsp; Those 6 fields are not in the selection criteria.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thoughts? Thanks&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Mar 2025 18:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594398#M143</guid>
      <dc:creator>JeffreyHinderliter</dc:creator>
      <dc:date>2025-03-11T18:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unselected Records returning Null for field</title>
      <link>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594404#M144</link>
      <description>&lt;P&gt;From what you have copied and pasted, it appears your syntax for Arcade isn't correct... At a minimum you need to add curly brackets after your condition and then add a `return` so that the value is returned. The code as you pasted it would not return a value.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($record.size != null &amp;amp;&amp;amp; $record.material != null &amp;amp;&amp;amp; $record.verifdate ==null){
    return $record.survey_date
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 18:17:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594404#M144</guid>
      <dc:creator>AustinAverill</dc:creator>
      <dc:date>2025-03-11T18:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unselected Records returning Null for field</title>
      <link>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594446#M145</link>
      <description>&lt;P&gt;It does return a value, although not entirely correct. I will try what you suggested. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 19:49:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594446#M145</guid>
      <dc:creator>JeffreyHinderliter</dc:creator>
      <dc:date>2025-03-11T19:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unselected Records returning Null for field</title>
      <link>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594463#M146</link>
      <description>&lt;P&gt;Austin, made that change but still have the same results.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 19:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594463#M146</guid>
      <dc:creator>JeffreyHinderliter</dc:creator>
      <dc:date>2025-03-11T19:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unselected Records returning Null for field</title>
      <link>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594678#M147</link>
      <description>&lt;P&gt;You need the return, but when the if statement only has one line, you don't need brackets. This would work perfectly fine&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($record.size != null &amp;amp;&amp;amp; $record.material != null &amp;amp;&amp;amp; $record.verifdate == null) return $record.survey_date;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Mar 2025 12:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594678#M147</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-03-12T12:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unselected Records returning Null for field</title>
      <link>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594681#M148</link>
      <description>&lt;P&gt;For the records where verifdat is populated, do you just want to keep that date? Give this a try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;When(
  $record.size != null &amp;amp;&amp;amp; $record.material != null &amp;amp;&amp;amp; $record.verifdate == null, $record.survey_date, 
  $record.verifdate
);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 12:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-pipelines-questions/unselected-records-returning-null-for-field/m-p/1594681#M148</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-03-12T12:47:44Z</dc:date>
    </item>
  </channel>
</rss>

