<?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: Error adding fields to multiple classes with AddField_management in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803449#M2155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;get rid of the \ in your list, there is no need for continuation as for strings, just hit enter after a comma to get a list to continue on to the next line... probably not related, but it could be an escape issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2018 20:15:59 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-04-09T20:15:59Z</dc:date>
    <item>
      <title>Error adding fields to multiple classes with AddField_management</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803448#M2154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;Am trying to add a field to multiple classes in a File Geodatabase in ArcCatalog with a python script (below.)&amp;nbsp; The script periodically errors on AddField_management returning a "General Function Failure".&amp;nbsp; After the error I can't open the class and receive a "Can't edit object(s)" message box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made sure that all classes are OK (can be opened and inspected) prior to running the script.&amp;nbsp; So, I'm pretty sure there is something about the script that is causing a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first I though it might be the number of items in the class name list -- it seemed to fail on processing the 20th item.&amp;nbsp; But now I'm not so sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insights on this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;import&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: green; background: white;"&gt;#Set the connection information&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;arcpy&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;env&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;workspace &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;=&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"C:\Projects\Pilot_Test.gdb"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;def&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: fuchsia; background: white;"&gt;FieldExist&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;featureclass&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; fieldname&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldList &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; arcpy&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;ListFields&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;featureclass&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; fieldname&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldCount &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; len&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;fieldList&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;if&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;fieldCount &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;==&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: red; background: white;"&gt;1&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;return&lt;/STRONG&gt; &lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;True&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;else&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;return&lt;/STRONG&gt; &lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;False&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;try&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: green; background: white;"&gt;########################################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: green; background: white;"&gt;# Field properties for all new fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: green; background: white;"&gt;########################################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldName &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;=&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"FACILITYID"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aliasName &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;=&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"Facility ID"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldType &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;=&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"TEXT"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldLength &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;=&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: red; background: white;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: green; background: white;"&gt;########################################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: green; background: white;"&gt;# Iterate over classes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: green; background: white;"&gt;########################################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;print&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"Add FACILITYID to classes"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; classNames &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;=&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"cwFieldRestraint"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"cwFitting"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"cwPipe"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"AbandonedCurbBox"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"AbandonedWaterFitting"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;\&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"AbandonedWaterMain"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"AbandonedWaterService"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;\&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"AbandonedUGSecondary"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"AnchorGuy"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"BusBar"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"FaultCurrentZoneLimit"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;\&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"FixedConsService"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"XY"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"PriOHElectricLineSegment"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"SecOHElectricLineSegment"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;\&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"SecUGElectricLineSegment"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"ServicePoint"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"SpanGuy"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"Streetlight"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"Substation"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;\&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"Transformer"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"TransmissionLine"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;\&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wCasing"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wFitting"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wCurbBox"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wFieldRestraint"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wMainTap"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wMaintenanceTap"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;\&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wOffset"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wPumpOut"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wRawCasing"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wRawFitting"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wRawMain"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wServicePoint"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;\&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wSludgeCasing"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wSludgeFitting"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wSludgeMain"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wMain"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wMeter"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"wService"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; c &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;in&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; classNames&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;if&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;not&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; FieldExist&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;c&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; fieldName&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;)):&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;AddField_management&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;c&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; fieldName&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; fieldType&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;""&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;""&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; fieldLength&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; aliasName&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;,&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"NULLABLE"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;else&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&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;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;print&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"Field "&lt;/SPAN&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;+&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; fieldName &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;+&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;" already exists in class "&lt;/SPAN&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;+&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; c&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;print&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"Fields added successfully"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;print&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: gray; background: white;"&gt;"Process completed"&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: blue; background: white; font-size: 10.0pt;"&gt;except&lt;/STRONG&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: green; background: white;"&gt;#If an error occurs when running Addfield, print out the error message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: blue; background: white;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: navy; background: white;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;arcpy&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;GetMessages&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt;"&gt;())&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 19:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803448#M2154</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2018-04-09T19:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding fields to multiple classes with AddField_management</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803449#M2155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;get rid of the \ in your list, there is no need for continuation as for strings, just hit enter after a comma to get a list to continue on to the next line... probably not related, but it could be an escape issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803449#M2155</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-09T20:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding fields to multiple classes with AddField_management</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803450#M2156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sharing with &lt;A href="https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=1259f14d-211d-4d62-a847-20ab2549ede3&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=1259f14d-211d-4d62-a847-20ab2549ede3&amp;amp;searchIndex=0&lt;/A&gt;‌ space for more visibility.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 22:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803450#M2156</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-04-09T22:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding fields to multiple classes with AddField_management</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803451#M2157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whaddya know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removed the \ from the list and that seems to have resolved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 00:22:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803451#M2157</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2018-04-10T00:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding fields to multiple classes with AddField_management</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803452#M2158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it worked Edward&lt;/P&gt;&lt;P&gt;You should mark it closed with the answer that solved the problem so others know what the solution was.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 00:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-adding-fields-to-multiple-classes-with/m-p/803452#M2158</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-10T00:26:20Z</dc:date>
    </item>
  </channel>
</rss>

