<?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: adding multiple fields to features in a geodatabase in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729548#M56568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also use NULLABLE or NON_NULLABLE, not "True" in your DATE lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2020 18:56:51 GMT</pubDate>
    <dc:creator>RandyBurton</dc:creator>
    <dc:date>2020-04-30T18:56:51Z</dc:date>
    <item>
      <title>adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729546#M56566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble trying to add multiple fields to polygon feature classes into a file geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the python script I am working with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#set the environment settings&lt;BR /&gt;arcpy.env.workspace = "Z:\\folder\\folder\\Practice\\Practice.gdb"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Set local variables&lt;BR /&gt;fc = arcpy.ListFeatureClasses("Polygon")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Main Loop to add fields to all Polygon feature classes in file geodatabase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for fc in arcpy.ListFeatureClasses():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "sourceOFData", "TEXT", "", "", "75", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "Source Last Edit Date", "DATE", "", "", "75", "True", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "uploadAuthority", "TEXT", "", "", "75", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "effectiveDate", "DATE", "","", "75", "", "True", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "expirationDate", "DATE", "", "", "75", "", "True", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if fc == "DaviePSAP":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "sourcePSAPUnqID", "TEXT", "", "", "254", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif fc in arcpy.ListFeatureClasses():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "sourceUnqID", "TEXT", "", "", "254","", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif fc in arcpy.ListFeatureClasses():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "county", "TEXT", "", "", "75", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "state", "TEXT", "", "", "2", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "country", "TEXT", "", "", "2", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "agencyID", "TEXT", "", "", "100", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "serviceURI", "TEXT", "", "", "254", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "serviceURN", "TEXT", "", "", "", "254", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "serviceNumber", "TEXT", "", "", "15", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "agencyVCardURI", "TEXT", "", "", "254", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "displayName", "TEXT", "", "", "60", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "comments", "TEXT", "", "", "100", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "gcLabel", "TEXT", "", "", "150", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print "Fields have been added to all tables. Good Job!"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "C:/Users/Desktop/AddField5.py", line 17, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "Source Last Edit Date", "DATE", "", "", "75", "True", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.6\ArcPy\arcpy\management.py", line 3435, in AddField&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;BR /&gt;ExecuteError: ERROR 000622: Failed to execute (Add Field). Parameters are not valid.&lt;BR /&gt;ERROR 000800: The value is not a member of NULLABLE | NON_NULLABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the issue is related to the parameters that I have used for the "Date" fields I am attempting to create.&amp;nbsp; The current syntax works fine for fields that are just "TEXT" types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#set the environment settings&lt;BR /&gt;arcpy.env.workspace = "Z:\\folder\\folder\\Practice\\Practice.gdb"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Set local variables&lt;BR /&gt;fc = arcpy.ListFeatureClasses("Polygon")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Main Loop to add fields to all Polygon feature classes in file geodatabase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for fc in arcpy.ListFeatureClasses():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "sourceOFData", "TEXT", "", "", "75", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.AddField_management(fc, "Source Last Edit Date", "DATE", "", "", "75", "True", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "uploadAuthority", "TEXT", "", "", "75", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.AddField_management(fc, "effectiveDate", "DATE", "","", "75", "", "True", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.AddField_management(fc, "expirationDate", "DATE", "", "", "75", "", "True", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if fc == "DaviePSAP":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "sourcePSAPUnqID", "TEXT", "", "", "254", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif fc in arcpy.ListFeatureClasses():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "sourceUnqID", "TEXT", "", "", "254","", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif fc in arcpy.ListFeatureClasses():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "county", "TEXT", "", "", "75", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "state", "TEXT", "", "", "2", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "country", "TEXT", "", "", "2", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "agencyID", "TEXT", "", "", "100", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "serviceURI", "TEXT", "", "", "254", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "serviceURN", "TEXT", "", "", "", "254", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "serviceNumber", "TEXT", "", "", "15", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "agencyVCardURI", "TEXT", "", "", "254", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "displayName", "TEXT", "", "", "60", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "comments", "TEXT", "", "", "100", "", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "gcLabel", "TEXT", "", "", "150", "", "NULLABLE", "NON_REQUIRED", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code works this way&amp;nbsp; but I really need the date field arguments to work in conjunction with the added text fields.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI: Still a novice when it comes to Python scripting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:37:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729546#M56566</guid>
      <dc:creator>TyquinWashington</dc:creator>
      <dc:date>2020-04-30T18:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729547#M56567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you have spaces (not allowed) in the field name:&amp;nbsp;"Source Last Edit Date".&amp;nbsp; Since it is a date field, I also suggest leaving the length parameter blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729547#M56567</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2020-04-30T18:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729548#M56568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also use NULLABLE or NON_NULLABLE, not "True" in your DATE lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729548#M56568</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2020-04-30T18:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729549#M56569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still getting the same error even though I have removed the spaces from the field name and the value from the field length for my date fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729549#M56569</guid>
      <dc:creator>TyquinWashington</dc:creator>
      <dc:date>2020-04-30T18:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729550#M56570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have also restored replaced the True with NULLABLE and I am still getting the same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729550#M56570</guid>
      <dc:creator>TyquinWashington</dc:creator>
      <dc:date>2020-04-30T19:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729551#M56571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It also looks like you were missing the field alias.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;#AddField(in_table, field_name, field_type, {field_precision}, {field_scale}, {field_length}, {field_alias}, {field_is_nullable}, {field_is_required}, {field_domain})&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# arcpy.AddField_management(fc, "Source Last Edit Date", "DATE", "", "", "75", "True", "NON_REQUIRED", "")&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;  fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SourceLastEditDate"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;    &lt;SPAN class="string token"&gt;"DATE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; "&lt;SPAN class="comment token"&gt;#", "#", "#", "FieldAlias", "NULLABLE", "NON_REQUIRED", "#")‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# or&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SourceLastEditDate"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"DATE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                          field_is_nullable&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"NULLABLE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                          field_is_required&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"NON_REQUIRED"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:09:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729551#M56571</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2021-12-12T07:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729552#M56572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason that the field alias is absent is because for NEXTGen911, field aliases are not allowed for data upload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729552#M56572</guid>
      <dc:creator>TyquinWashington</dc:creator>
      <dc:date>2020-04-30T19:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729553#M56573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are using the defaults for nullable and required, you could just omit those parameters.&amp;nbsp; Provide the first three required parameters in order, and add field_length=00 (some number) for your text fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729553#M56573</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2020-04-30T19:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729554#M56574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the second suggested Add field for Date and I am running into a overwrite error for one of my fields.&amp;nbsp; I set the overwrite environment so that it can overwrite fields.&amp;nbsp; What do you recommend?&amp;nbsp; I am writing this code as a practice run before I actually touch the true polygon feature classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:/Users/folder/Desktop/AddField5.py", line 20, in &amp;lt;module&amp;gt;&lt;BR /&gt; arcpy.AddField_management(fc, "effectiveDate", "DATE", "#", "#", "#", "#", "NULLABLE", "NON_REQUIRED", "")&lt;BR /&gt; File "C:\Program Files (x86)\ArcGIS\Desktop10.6\ArcPy\arcpy\management.py", line 3435, in AddField&lt;BR /&gt; raise e&lt;BR /&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000012: effectiveDate already exists&lt;BR /&gt;Failed to execute (AddField).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:38:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729554#M56574</guid>
      <dc:creator>TyquinWashington</dc:creator>
      <dc:date>2020-04-30T19:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729555#M56575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could wrap your AddField with a try/except block. You could then print an error message if there is a problem creating the field.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;for fc in arcpy.ListFeatureClasses():
    try:
        arcpy.AddField_management(fc, "sourceOFData", "TEXT", field_length="75")
    except:
        print "Error creating {} field".format('sourceOFData')

    try:
        arcpy.AddField_management(fc, "SourceLastEditDate", "DATE")
    except:
        print "Error creating {} field".format('SourceLastEditDate')

    # etc.&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See &lt;A href="https://www.w3schools.com/python/python_try_except.asp" rel="nofollow noopener noreferrer" target="_blank"&gt;Python Try Except &lt;/A&gt;for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option would be to use &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listfields.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ListFields &lt;/A&gt;to find out what fields are in your feature and then add those that are not already in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:09:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729555#M56575</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2021-12-12T07:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729556#M56576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.  I did the try/except block and it works for everything.  I really appreciate all the help you gave to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 13:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729556#M56576</guid>
      <dc:creator>TyquinWashington</dc:creator>
      <dc:date>2020-05-01T13:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729557#M56577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although spaces are not allowed in field names, most geoprocessing tools will accept them.&amp;nbsp; What ends up happening behind the scenes is that the invalid name is made valid, likely using similar method as &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/validatefieldname.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/validatefieldname.htm"&gt;ValidateFieldName—ArcPy Functions | Documentation&lt;/A&gt;, and then the field is created and given the valid name while the invalid name with a space is made the alias of the field name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 14:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729557#M56577</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-05-01T14:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: adding multiple fields to features in a geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729558#M56578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have solved or found a workaround for your issue, please mark someone's reply as correct or mark the thread as assumed answered to close it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 14:49:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-multiple-fields-to-features-in-a/m-p/729558#M56578</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-05-01T14:49:58Z</dc:date>
    </item>
  </channel>
</rss>

