I am using ArcMap 10.7.
I am appending successfuly features from one GDB to another GDB, after updating two fields in the original gdb. (1) However, I want to change it.
I want to do the append these features from one GDB to another, and than I want to update the fields of these features in the destination GDB (2). No idea on how to do this. I put the code of the (1) but I need something for the (2)
Anyone can suggest something.
for fc in fcs:
count=count_records(fc) # counts the features within each FC
if count<>"0": # only feature classes with features
with arcpy.da.UpdateCursor(fc,["DATE_1"]) as cur : ## rewrite the date in the field
for row in cur:
with arcpy.da.UpdateCursor(fc,["PED"]) as cursor_Name: #update the Issue_Name field in the Feature classes that have features, with the latest date
for prow in cursor_Name:
targetfc = GDBDwgs + "\\" + fc
print "something went wrong"