<?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 Setting Field Properties to Not Nullable in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269054#M20720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a simple script that I think would automate this task, it runs but I dont see any changes in the field properties...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; fieldList = arcpy.ListFields(path to the feature class)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; for field in fieldList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field.isNullable = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 15:43:04 GMT</pubDate>
    <dc:creator>benberman</dc:creator>
    <dc:date>2014-03-19T15:43:04Z</dc:date>
    <item>
      <title>Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269054#M20720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a simple script that I think would automate this task, it runs but I dont see any changes in the field properties...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; fieldList = arcpy.ListFields(path to the feature class)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; for field in fieldList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field.isNullable = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 15:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269054#M20720</guid>
      <dc:creator>benberman</dc:creator>
      <dc:date>2014-03-19T15:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269055#M20721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This may be a read only property that you can only set when creating the field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 16:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269055#M20721</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2014-03-19T16:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269056#M20722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello FLBB,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bad news;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Updating a field property only updates the field object, no changes are made to the actual field in the table or feature class." (-&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018z0000004n000000"&gt;ESRI Documentation&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a poor workaround, you can try create new fields, calculate the over the values and then delete the original fields (&lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/65845/how-do-i-change-the-isnullable-property-for-a-field"&gt;see similar posting&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 16:20:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269056#M20722</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2014-03-19T16:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269057#M20723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would expect that there may be some type of override. I can accomplish this task in Diagrammer but I want to start automating to save time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 16:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269057#M20723</guid>
      <dc:creator>benberman</dc:creator>
      <dc:date>2014-03-19T16:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269058#M20724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello FLBB,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think changing the field properties is often forbidden because it is very easy to corrupt the data. I can't find any way to permanently change the is nullable property of a field in ArcMap or arcpy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why ESRI even allowed this property to be writable since it doesn't get saved anywhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most solutions I run into seem to suggest creating a new field, transferring the data and then deleting the old one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 17:01:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269058#M20724</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2014-03-19T17:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269059#M20725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, I was able to accomplish this task by using the python XML package:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from xml.etree import ElementTree as et&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tree = et.parse(xmlfilename)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tree.find('.//IsNullable').text = 'false'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tree.write(xmlfilename)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically any element or "tag" value in an already built schema may be changed using a similar format. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next, what I would like to accomplish is, instead of specifying each XML file individually, I want for the script to be able to automatically call all XML documents within a folder and complete this task. If anyone has any ideas it'd be much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 18:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269059#M20725</guid>
      <dc:creator>benberman</dc:creator>
      <dc:date>2014-03-19T18:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269060#M20726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nice solution FLBB! Does it work when you open that file in ArcMap?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should find all xml documents in a given directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import os
for aFile in os.listdir(r"C:\Path\To\Data"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if aFile.lower().endswith(".xml"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print aFile
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Do stuff to xml files&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269060#M20726</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2021-12-11T13:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269061#M20727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nice solution FLBB! Does it work when you open that file in ArcMap?&lt;BR /&gt;&lt;BR /&gt;This should find all xml documents in a given directory.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import os
for aFile in os.listdir(r"C:\Path\To\Data"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if aFile.lower().endswith(".xml"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print aFile
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Do stuff to xml files&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This code above simply lists the XML files. I am thinking something more along the lines of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; from xml.etree import ElementTree as et&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... import os&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... workspace = r"C:\test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... for dirpath, dirnames, filenames in os.walk(workspace):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for filename in filenames:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if '.xml' in filename:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tree = et.parse(os.path.join(dirpath, filename))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tree.find('.//IsNullable').text = 'false'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tree.write(os.path.join(dirpath,filename))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 8, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'NoneType' object has no attribute 'text'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously I'm missing a piece to this. Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:10:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269061#M20727</guid>
      <dc:creator>benberman</dc:creator>
      <dc:date>2021-12-11T13:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269062#M20728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello FLBB,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed you if statement. This one will skip files like &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; text-decoration: underline;"&gt;about.xmlfiles.txt&lt;/SPAN&gt;&lt;SPAN&gt; (which is possible). It will also be case insensitive (accepting both '.xml' and '.XML' files).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you also need an if statement to see if 'IsNullable' actually appears in the xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;from xml.etree import ElementTree as et
import os
workspace = r"C:\test"
for dirpath, dirnames, filenames in os.walk(workspace):
&amp;nbsp;&amp;nbsp;&amp;nbsp; for filename in filenames:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if filename.lower().endswith('.xml'):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tree = et.parse(os.path.join(dirpath, filename))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; targetTag=tree.find('.//IsNullable')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if targetTag is not None:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; targetTag.text = 'false'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "No IsNullable tag was NOT found in: "+filename
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tree.write(os.path.join(dirpath,filename))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I not 100% confident this methodology will actually change the Nullable field property. I worried that you are only changing the metadata and the actual field property (in the '.dbf') is not changing. Can you actually put null values into a field of one of the shapefiles you have modified?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let be know how it goes!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:10:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269062#M20728</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2021-12-11T13:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Field Properties to Not Nullable</title>
      <link>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269063#M20729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello FLBB,&lt;BR /&gt;&lt;BR /&gt;I changed you if statement. This one will skip files like &lt;SPAN style="font-style: italic; text-decoration: underline;"&gt;about.xmlfiles.txt&lt;/SPAN&gt; (which is possible). It will also be case insensitive (accepting both '.xml' and '.XML' files).&lt;BR /&gt;&lt;BR /&gt;I think you also need an if statement to see if 'IsNullable' actually appears in the xml file.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;from xml.etree import ElementTree as et
import os
workspace = r"C:\test"
for dirpath, dirnames, filenames in os.walk(workspace):
&amp;nbsp;&amp;nbsp;&amp;nbsp; for filename in filenames:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if filename.lower().endswith('.xml'):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tree = et.parse(os.path.join(dirpath, filename))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; targetTag=tree.find('.//IsNullable')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if targetTag is not None:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; targetTag.text = 'false'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "No IsNullable tag was NOT found in: "+filename
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tree.write(os.path.join(dirpath,filename))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I not 100% confident this methodology will actually change the Nullable field property. I worried that you are only changing the metadata and the actual field property (in the '.dbf') is not changing. Can you actually put null values into a field of one of the shapefiles you have modified?&lt;BR /&gt;&lt;BR /&gt;Let be know how it goes!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I am a little late responding to this, thank you very much for your assistance, Josh.&amp;nbsp; Yes, it is confirmed that both of our methods do work and yes, it is confirmed that this method will in fact set the "Allow Null Values" property in the GDB schema.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-field-properties-to-not-nullable/m-p/269063#M20729</guid>
      <dc:creator>benberman</dc:creator>
      <dc:date>2021-12-11T13:10:29Z</dc:date>
    </item>
  </channel>
</rss>

