<?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 attribute 'field is required' property in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/attribute-field-is-required-property/m-p/52939#M3026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can set the field_is_required property when creating a field (via diagrammer or management tools/add field yet I don't see this actually being enforced when i attempt to edit the data. Is this a known issue? Can anyone actually confirm they have it working? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding is that this will 'force' a newly added record to include the 'required' field is populated, similar in concept to the is_nullable property that you can set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000047000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000047000000&lt;/A&gt;&lt;SPAN&gt; for more info on the tools syntax.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 09:26:01 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-09-15T09:26:01Z</dc:date>
    <item>
      <title>attribute 'field is required' property</title>
      <link>https://community.esri.com/t5/data-management-questions/attribute-field-is-required-property/m-p/52939#M3026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can set the field_is_required property when creating a field (via diagrammer or management tools/add field yet I don't see this actually being enforced when i attempt to edit the data. Is this a known issue? Can anyone actually confirm they have it working? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding is that this will 'force' a newly added record to include the 'required' field is populated, similar in concept to the is_nullable property that you can set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000047000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000047000000&lt;/A&gt;&lt;SPAN&gt; for more info on the tools syntax.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 09:26:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/attribute-field-is-required-property/m-p/52939#M3026</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-09-15T09:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: attribute 'field is required' property</title>
      <link>https://community.esri.com/t5/data-management-questions/attribute-field-is-required-property/m-p/52940#M3027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000047000000" rel="nofollow noopener noreferrer" target="_blank"&gt;web help&lt;/A&gt;&lt;SPAN&gt; is incorrect where it states:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;REQUIRED �??The field is a required field. This means new records must contain a value for the field. Required fields are permanent and can not be deleted. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;'This means new records must contain a value for the field'&lt;/SPAN&gt;&lt;SPAN&gt; should be removed.&amp;nbsp; Setting a field to 'Required' will make it permanent, and disable the option to delete it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a workaround you could create a script to check all 'required' fields for empty values.&amp;nbsp; Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
env.workspace = r"C:\temp\python\test.gdb"

fc = "Req_Test"

lstFields = arcpy.ListFields(fc, "*")
for field in lstFields:
&amp;nbsp;&amp;nbsp;&amp;nbsp; if field.required == True:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_name = field.name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows = arcpy.SearchCursor(fc, "", "", field_name)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; val = row.getValue(field_name)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if val == " ":
&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 field_name + " contains a blank row for OBJECTID " + str(row.OBJECTID) 


del row, rows&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/attribute-field-is-required-property/m-p/52940#M3027</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-10T22:02:17Z</dc:date>
    </item>
  </channel>
</rss>

