<?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 Populate missing dates from features in the same feature class in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/populate-missing-dates-from-features-in-the-same/m-p/1619241#M1769</link>
    <description>&lt;P&gt;I have a feature class of water Mains. About half of the mains are missing the install date, and spatially the lines with missing install dates are in between two lines with dates. Can I use attribute rules to find the install dates of connecting lines and populate the install date with the older date? Or would Field Calculator be better since this needs to only apply to features where InstallDate is NULL?&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2025 12:53:41 GMT</pubDate>
    <dc:creator>GregN_WesslerEng</dc:creator>
    <dc:date>2025-05-29T12:53:41Z</dc:date>
    <item>
      <title>Populate missing dates from features in the same feature class</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/populate-missing-dates-from-features-in-the-same/m-p/1619241#M1769</link>
      <description>&lt;P&gt;I have a feature class of water Mains. About half of the mains are missing the install date, and spatially the lines with missing install dates are in between two lines with dates. Can I use attribute rules to find the install dates of connecting lines and populate the install date with the older date? Or would Field Calculator be better since this needs to only apply to features where InstallDate is NULL?&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/populate-missing-dates-from-features-in-the-same/m-p/1619241#M1769</guid>
      <dc:creator>GregN_WesslerEng</dc:creator>
      <dc:date>2025-05-29T12:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Populate missing dates from features in the same feature class</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/populate-missing-dates-from-features-in-the-same/m-p/1619246#M1770</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/526566"&gt;@GregN_WesslerEng&lt;/a&gt;&amp;nbsp;I would use field calculator to populate the date.&lt;/P&gt;&lt;P&gt;You can do a select by location to select the lines with no dates based on their relationship with dated lines and then populate the date field with the calculator with whatever date you chose.&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/populate-missing-dates-from-features-in-the-same/m-p/1619246#M1770</guid>
      <dc:creator>JonM32</dc:creator>
      <dc:date>2025-05-29T12:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Populate missing dates from features in the same feature class</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/populate-missing-dates-from-features-in-the-same/m-p/1619320#M1771</link>
      <description>&lt;P&gt;If you only need to update the null values once then a simple calculation using arcade will do the trick. It would look something like this.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var OID = $feature.OBJECTID
var DV = $feature.&amp;lt;DateField&amp;gt;
if( IsEmpty( DV ) ){ DV = Today() }

var FS = Filter( $featureset, 'OBJECTID &amp;lt;&amp;gt; @OID' )
var I = Intersection($feature, FS)
if( Count(I) &amp;gt; 0 ){
	for( var row in I ){
		if( row.&amp;lt;DateField&amp;gt; &amp;lt; DV ){ DV = row.&amp;lt;DateField&amp;gt; }
		}
	}
return DV&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 May 2025 16:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/populate-missing-dates-from-features-in-the-same/m-p/1619320#M1771</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-05-29T16:33:28Z</dc:date>
    </item>
  </channel>
</rss>

