<?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: Change Nulls to Blanks in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301154#M23400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the script as a tool in ArcToolbox.&amp;nbsp; Do I need to set the Region fc to text, if it is not being used as a entered value?&amp;nbsp; For instance, I am using RMS = arcpy.GetParameterAsText(0) and Classification = arcpy.GetParameterAsText(1) as values to be entered, selected, and zoomed to.&amp;nbsp; If so, do I have to include a # at the end, such as 0, 1, 2, etc?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jul 2013 16:50:13 GMT</pubDate>
    <dc:creator>JamesSmith7</dc:creator>
    <dc:date>2013-07-31T16:50:13Z</dc:date>
    <item>
      <title>Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301138#M23384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to change Nulls(&amp;lt;Null&amp;gt;) to Blanks("") for a field in an attribute table.&amp;nbsp; The field is a string named RMS.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;fieldList = arcpy.ListFields(fc, "", "String")&amp;nbsp; for field in fieldList: &amp;nbsp; updateRows = arcpy.da.UpdateCursor(fc, RMS + " IS NULL", "", RMS)&amp;nbsp; for updateRow in updateRows: &amp;nbsp; updateRow.setValue(RMS, "") &amp;nbsp; updateRows.updateRow(updateRow)&amp;nbsp; del row, cursor&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 13:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301138#M23384</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-07-30T13:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301139#M23385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure what you need a field list for when you are just changing one field with a known name. Here is how I would go about it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

field = "RMS"
cursor = arcpy.da.UpdateCursor(fc, field, "{0} IS NULL".format(arcpy.AddFieldDelimiters(fc, field)))
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = ""
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow(row)
del row, cursor&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301139#M23385</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-11T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301140#M23386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Initially, I was going to create a list, but then determined that I needed to update two fields.&amp;nbsp; So, if I get help with the syntax, I can just recreate the for loop twice.&amp;nbsp; Guess, I could have taken the list out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The suggested code is not working yet.&amp;nbsp; So, I am going to go through my code and see if something else is missing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 14:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301140#M23386</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-07-30T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301141#M23387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Initially, I was going to create a list, but then determined that I needed to update two fields.&amp;nbsp; So, if I get help with the syntax, I can just recreate the for loop twice.&amp;nbsp; Guess, I could have taken the list out.&lt;BR /&gt;&lt;BR /&gt;The suggested code is not working yet.&amp;nbsp; So, I am going to go through my code and see if something else is missing.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you getting an error message or is the script just not changing the values?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301141#M23387</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-07-30T15:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301142#M23388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The script completes with no error codes returned.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301142#M23388</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-07-30T15:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301143#M23389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is the "IS NULL" being passed with quotes?&amp;nbsp; That will break an IS NULL query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

field = "RMS"
sql = "{0}".format(arcpy.AddFieldDelimiters(fc,field)) + " IS NULL"

cursor = arcpy.da.UpdateCursor(fc, field, sql)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = ""
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow(row)
del row, cursor.
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301143#M23389</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-11T14:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301144#M23390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The IS NULL statement works, because I added an arcpy.AddMessage afterwards and the value was returned.&amp;nbsp; The script seems to hang on the UpdateCursor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 16:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301144#M23390</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-07-30T16:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301145#M23391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps because it is formatted incorrectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
updateRows = arcpy.da.UpdateCursor(fc, RMS + " IS NULL", "", RMS)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
UpdateCursor (in_table, field_names, {where_clause}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , {spatial_reference}, {explode_to_points}, {sql_clause})

so maybe something like:

updateRows = arcpy.da.UpdateCursor(fc,"RMS",RMS + " IS NULL")

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears as if you where clause and fields are transposed and no quotes around the field attribute so was looking for the variable RMS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of course, with your where clause, you still need to define RMS, so maybe that part doesn't matter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301145#M23391</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-11T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301146#M23392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Provided is my entire code.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

RMS = arcpy.GetParameterAsText(0)
Type = arcpy.GetParameterAsText(1)

mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
fc = arcpy.mapping.ListLayers(mxd, "Region", df)[0]

#Logic
try:
 whereClause = ''' "RMS" = '{0}' AND "Type" = '{1}' '''.format(RMS, Type)
 arcpy.SelectLayerByAttribute_management(fc, "NEW_SELECTION", whereClause)
 df.extent = fc.getSelectedExtent()
 df.scale = df.scale*1.1

 sql = "{0}".format(arcpy.AddFieldDelimiters(fc,field)) + " IS NULL"

 cursor = arcpy.da.UpdateCursor(fc, field, sql)
 for row in cursor:
&amp;nbsp; row[0] = ""
&amp;nbsp; cursor.updateRow(row)
 del row, cursor


except:
 print arcpy.GetMessages()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301146#M23392</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2021-12-11T14:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301147#M23393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Perhaps because it is formatted incorrectly.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
updateRows = arcpy.da.UpdateCursor(fc, RMS + " IS NULL", "", RMS)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
UpdateCursor (in_table, field_names, {where_clause}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , {spatial_reference}, {explode_to_points}, {sql_clause})

so maybe something like:

updateRows = arcpy.da.UpdateCursor(fc,"RMS",RMS + " IS NULL")

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;It appears as if you where clause and fields are transposed and no quotes around the field attribute so was looking for the variable RMS.&lt;BR /&gt;of course, with your where clause, you still need to define RMS, so maybe that part doesn't matter.&lt;BR /&gt;&lt;BR /&gt;R_&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I itend to implement your suggested changes tomorrow morning.&amp;nbsp; I got stuck in a meeting this afternoon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:27:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301147#M23393</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2021-12-11T14:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301148#M23394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should have what you need to get it working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, after these two lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RMS = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Type = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could you print them out to see what is getting reported?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print RMS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print Type&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also, I don't believe "Type" is a reserved word, but it is generally a bad idea to use variable with names the same as built in functions as it can mask or overwrite the built in function(s).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Type(RMS) in python gives the "type" of object assigned to the RMS variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, what is the format of the "Regions" layer?&amp;nbsp; FGDB, oracle spatial table, etc.?&amp;nbsp; I ask as there is a bug in the update cursor and will not work on external database tables that are not registered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, I have to actually use the oracle module for python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 20:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301148#M23394</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-07-30T20:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301149#M23395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I copied the data from the Type field to a new field, named Classification.&amp;nbsp; The Regions layer is a feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print RMS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print Classification&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After running the print RMS &amp;amp; Classification the script completes with no errors or results.&amp;nbsp; I just receive the typical start time, end time, running, and completed notifications.&amp;nbsp; If I add arcpy.AddMessage("Good") after the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RMS = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Classification = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, I receive the same as before with "Good" added.&amp;nbsp; So, the input parameters seem to be ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I notice that upon running the script as a tool in ArcToolbox, that if the parameter is changed to optional, and no input value is provided, # is listed in the Executing line.&amp;nbsp; Is the # a place holder?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 10:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301149#M23395</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-07-31T10:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301150#M23396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I copied the data from the Type field to a new field, named Classification.&amp;nbsp; The Regions layer is a feature class.&lt;BR /&gt;&lt;BR /&gt;print RMS&lt;BR /&gt;print Classification&lt;BR /&gt;&lt;BR /&gt;After running the print RMS &amp;amp; Classification the script completes with no errors or results.&amp;nbsp; I just receive the typical start time, end time, running, and completed notifications.&amp;nbsp; If I add arcpy.AddMessage("Good") after the &lt;BR /&gt;RMS = arcpy.GetParameterAsText(0)&lt;BR /&gt;Classification = arcpy.GetParameterAsText(1)&lt;BR /&gt;&lt;BR /&gt;Then, I receive the same as before with "Good" added.&amp;nbsp; So, the input parameters seem to be ok.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to follow up with Rhett's suggestion of the print/addmessage statements...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure if both are seen (in PythonWin and the Geoprocessor results window maybe?).&amp;nbsp; But rather than:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

arcpy.AddMessage("Good") 

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do this instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

arcpy.AddMessage(str(RMS))
arcpy.AddMessage(str(Classification))

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...and see if these values are seen in the results window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301150#M23396</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-11T14:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301151#M23397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The values returned this time are the ones entered in the script tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I entered 1 for RMS and F for Classification&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script runs and returns the start and end time, running and completed, with the additional comments:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;F&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still missing something with the UpdateCursor.&amp;nbsp; Any other suggestions?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The whereClause works fine, until it encounters a null value.&amp;nbsp; Therefore, leads me to believe that I still have an issue with the UpdateCursor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

RMS = arcpy.GetParameterAsText(0)
Classification = arcpy.GetParameterAsText(1)

mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
fc = arcpy.mapping.ListLayers(mxd, "Region", df)[0]

arcpy.AddMessage(str(RMS))
arcpy.AddMessage(str(Classification))

try:
 whereClause = ''' "RMS" = '{0}' AND "Classification" = '{1}' '''.format(RMS, Classification)
 arcpy.SelectLayerByAttribute_management(fc, "NEW_SELECTION", whereClause)
 df.extent = fc.getSelectedExtent()
 df.scale = df.scale*1.1

 cursor = arcpy.da.UpdateCursor(fc,"RMS", RMS + " IS NULL")
 for row in cursor:
&amp;nbsp; row[0] = ""
&amp;nbsp; cursor.updateRow(row)
 del row, cursor
 
except:
 print arcpy.GetMessages()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:27:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301151#M23397</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2021-12-11T14:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301152#M23398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The values entered are returned.&amp;nbsp; I entered 1 for RMS and F for Classification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The initial whereClause runs fine, until a null value is encountered.&amp;nbsp; I believe the issue is still with the UpdateCursor.&amp;nbsp; I have gone back and attempted to work with the previous suggestions, but to not avail.&amp;nbsp; The results are still the same, no errors, and no results.&amp;nbsp; I know how to fix the null vs blank problem using field calculator, but not with a script.&amp;nbsp; Other suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

RMS = arcpy.GetParameterAsText(0)
Classification = arcpy.GetParameterAsText(1)

mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
fc = arcpy.mapping.ListLayers(mxd, "Region", df)[0]

arcpy.AddMessage(str(RMS))
arcpy.AddMessage(str(Classification))


#Logic
try:
 whereClause = ''' "RMS" = '{0}' AND "Classification" = '{1}' '''.format(RMS, Classification)
 arcpy.SelectLayerByAttribute_management(fc, "NEW_SELECTION", whereClause)
 df.extent = fc.getSelectedExtent()
 df.scale = df.scale*1.1

 sql = "{0}".format(arcpy.AddFieldDelimiters(Region, RMS, Classification)) + " IS NULL"
 cursor = arcpy.da.UpdateCursor("Region", ["RMS", "Classification"], sql) 
 for row in cursor:
&amp;nbsp; row[0] = ""
&amp;nbsp; cursor.updateRow(row)
 del row, cursor

except:
 print arcpy.GetMessages()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:27:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301152#M23398</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2021-12-11T14:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301153#M23399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; The values entered are returned. I entered 1 for RMS and F for Classification.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;The initial whereClause runs fine, until a null value is encountered. I believe the issue is still with the UpdateCursor. I have gone back and attempted to work with the previous suggestions, but to not avail. The results are still the same, no errors, and no results. I know how to fix the null vs blank problem using field calculator, but not with a script. Other suggestions?&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy&amp;nbsp; RMS = arcpy.GetParameterAsText(0) Classification = arcpy.GetParameterAsText(1)&amp;nbsp; mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] fc = arcpy.mapping.ListLayers(mxd, "Region", df)[0]&amp;nbsp; arcpy.AddMessage(str(RMS)) arcpy.AddMessage(str(Classification))&amp;nbsp;&amp;nbsp; #Logic try:&amp;nbsp; whereClause = ''' "RMS" = '{0}' AND "Classification" = '{1}' '''.format(RMS, Classification)&amp;nbsp; arcpy.SelectLayerByAttribute_management(fc, "NEW_SELECTION", whereClause)&amp;nbsp; df.extent = fc.getSelectedExtent()&amp;nbsp; df.scale = df.scale*1.1&amp;nbsp; arcpy.SelectLayerByAttribute_management(fc, "CLEAR_SELECTION", whereClause)&amp;nbsp;&amp;nbsp; sql = "{0}".format(arcpy.AddFieldDelimiters(Region, RMS, Classification)) + " IS NULL"&amp;nbsp; # not sure what the output of this is,is it valid sql?&amp;nbsp; in either case, Region variable is not defined&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor = arcpy.da.UpdateCursor(fc, "RMS", sql)&amp;nbsp; # the region layer has been set to variable fc.&amp;nbsp; for row in cursor: &amp;nbsp; row[0] = "" &amp;nbsp; cursor.updateRow(row)&amp;nbsp; del row, cursor&amp;nbsp; except:&amp;nbsp; print arcpy.GetMessages()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it were me, I'd make a copy of my data and try to get the updateCursor working WITHOUT the where clause ( cursor = arcpy.da.UpdateCursor(fc, "RMS") ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run it with row[0] = "test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then with row[0] = "" # of course, all this assumes the "Region" field is a text field...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you get it working for ALL rows in the table, then I'd figure out the proper where clause to put in there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A lot of time, select/copy/paste each line in the IDLE window and running it will often give an idea of what is going wrong. Also, in the IDLE, you can type "print variable" (I.e. &amp;gt;&amp;gt;&amp;gt;print RMS ) at any time to see the value that is currently assigned to it. Also "type(variable)" will give you the variable type to ensure it is the proper input for a tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On another note, you said you could calculate it, but want to do it with python, why not:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.CalculateField_management(fc, "RMS", "\\"", "PYTHON_9.3") &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, your selectLayerbyAttributes is putting a selection on the fc before the cursor. Documentation for UdateCursor doesn't say if it honors selections or not, but you might try to clear selection before the updatecursor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 16:38:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301153#M23399</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-07-31T16:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301154#M23400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the script as a tool in ArcToolbox.&amp;nbsp; Do I need to set the Region fc to text, if it is not being used as a entered value?&amp;nbsp; For instance, I am using RMS = arcpy.GetParameterAsText(0) and Classification = arcpy.GetParameterAsText(1) as values to be entered, selected, and zoomed to.&amp;nbsp; If so, do I have to include a # at the end, such as 0, 1, 2, etc?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 16:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301154#M23400</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-07-31T16:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change Nulls to Blanks</title>
      <link>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301155#M23401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The UpdateCursor works when the selection is cleared.&amp;nbsp; Then, proceeds to blank all values within a field.&amp;nbsp; So, I went ahead and selected the desired records within the field and changed them from null to blank via Field Calculator.&amp;nbsp; Now, the whereClause runs as intended.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 18:44:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-nulls-to-blanks/m-p/301155#M23401</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-08-01T18:44:04Z</dc:date>
    </item>
  </channel>
</rss>

