Hi all,
I'm trying to calculate the same field in multiple feature classes in a list.
The first time it runs after opening Pro, it works great. However, each time after that, it will calculate the field for the first feature class in the list and ignore the rest.
Does anyone have any ideas as to what might be causing it?
FCList= [FC1, FC2]
for FC in FCList:
arcpy.management.CalculateField(FC, 'SampleField', '"Hello world"', 'ARCADE')
Edit:
My current best guess is that later in the script I delete the field that's being calculated, and that's what's causing it to freak out. Does anyone have any ideas for how to prevent that from happening?
FCList= [FC1, FC2]
for FC in FCList:
arcpy.management.CalculateField(FC, 'SampleField', '"Hello world"', 'ARCADE')
#code
#code
'''This is where the problem is, I think?'''
arcpy.management.DeleteField(FC, 'SampleField')