<?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: Model Builder Calculate Field Hangs in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160905#M5427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, the model is not working like I originally had hoped.&amp;nbsp; The difficulty is with zero length string records.&amp;nbsp; I have been trying to get a VB expression that would identify zero-length records. If a zero-length record exists, then populate the new field with a null, else calculate the new record.&amp;nbsp; The model converts a date expressed as a string to an actual date record.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Feb 2011 20:54:27 GMT</pubDate>
    <dc:creator>PhilipRichardson</dc:creator>
    <dc:date>2011-02-01T20:54:27Z</dc:date>
    <item>
      <title>Model Builder Calculate Field Hangs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160901#M5423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a built a model to add several fields to a table, then calculate the values from existing fields.&amp;nbsp; This would appear to be a simple task, but model builder hangs after a few iterations.&amp;nbsp; The problem seems to be with empty records.&amp;nbsp; It reports an error for each empty record it encounters, then it just seems to lock up.&amp;nbsp; I can accomplish the task in ArcMap by just telling Field Calculator to ignore the errors, but I was hoping to automate the task.&amp;nbsp; I have also tried Pyton script, but it hangs just like Model Builder.&amp;nbsp; Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 14:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160901#M5423</guid>
      <dc:creator>PhilipRichardson</dc:creator>
      <dc:date>2010-12-30T14:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Field Hangs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160902#M5424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As memory serves, this was a big issue with v9.2 (Field Calculator hangs)... I recall having this issue especially for large tables &amp;gt; 500k records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The one guaranteed fix is to use an update cursor via a Python script in lieu of the CalculateField tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 15:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160902#M5424</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2010-12-30T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Field Hangs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160903#M5425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the problem is only with empty records, could you just add a clause in your calculate field expression that deals with empty records.&amp;nbsp; i.e. if Field1&amp;nbsp; = "" then Field2 = "" (or if Field1 isnull ...)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 16:57:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160903#M5425</guid>
      <dc:creator>LornaMurison</dc:creator>
      <dc:date>2011-01-04T16:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Field Hangs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160904#M5426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are correct.&amp;nbsp; The problem exists with nulls and empty records.&amp;nbsp; I just figured this out today, by selecting only records with values before the field calculation.&amp;nbsp; It adds some steps in the model, but it now works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 20:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160904#M5426</guid>
      <dc:creator>PhilipRichardson</dc:creator>
      <dc:date>2011-01-06T20:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Field Hangs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160905#M5427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, the model is not working like I originally had hoped.&amp;nbsp; The difficulty is with zero length string records.&amp;nbsp; I have been trying to get a VB expression that would identify zero-length records. If a zero-length record exists, then populate the new field with a null, else calculate the new record.&amp;nbsp; The model converts a date expressed as a string to an actual date record.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 20:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160905#M5427</guid>
      <dc:creator>PhilipRichardson</dc:creator>
      <dc:date>2011-02-01T20:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Field Hangs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160906#M5428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is what I decided to do.&amp;nbsp; Instead of populating the new field with nulls, I used a date 1/1/1900, which I can use as a flag later.&amp;nbsp; To handle the zero-length string problem, I needed a VB script to recognize a zero-length cell, and substitute a date 1/1/1900.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim pstart1 as string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim pstart2 as string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pstart1 = [Date_Start]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if pstart1 = "" then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pstart2 = "1900-01-01"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pstart2 = pstart1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Date_Start] is the original field with dates expressed as a string.&amp;nbsp; The field calculator converts [Date_Start] to [New_Date], which is date format.&amp;nbsp; [New_Date] = pstart2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 19:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculate-field-hangs/m-p/160906#M5428</guid>
      <dc:creator>PhilipRichardson</dc:creator>
      <dc:date>2011-02-02T19:29:54Z</dc:date>
    </item>
  </channel>
</rss>

