Hi All,
I have a question with my script (listed below). This script does not work when one field is GlobalID the other is Guid. I also have tested if one field is GlobalID the other is Text. It still does not work. Please let me know if you all have any suggestion.
Thanks,
Hank
import arcpy
from arcpy import env
env.overwriteOutput = True
env.workspace = "F:\\Mark\\DataModelChanges\\Geodatabase.gdb\\Geology"
fc = "ContactsAndFaults_line"
fields = ('GlobalID', 'ContactsAndFaults_ID')
# Create update cursor for feature class
#
with arcpy.da.UpdateCursor(fc, fields) as cursor:
# For each row, read the OldField value (index position
# of 0), and update NewField value (index position of 1)
#
for row in cursor:
row[1] = row[0]
# Update the cursor with the updated list
#
cursor.updateRow(row)
I have a question with my script (listed below). This script does not work when one field is GlobalID the other is Guid. I also have tested if one field is GlobalID the other is Text. It still does not work. Please let me know if you all have any suggestion.
Thanks,
Hank
import arcpy
from arcpy import env
env.overwriteOutput = True
env.workspace = "F:\\Mark\\DataModelChanges\\Geodatabase.gdb\\Geology"
fc = "ContactsAndFaults_line"
fields = ('GlobalID', 'ContactsAndFaults_ID')
# Create update cursor for feature class
#
with arcpy.da.UpdateCursor(fc, fields) as cursor:
# For each row, read the OldField value (index position
# of 0), and update NewField value (index position of 1)
#
for row in cursor:
row[1] = row[0]
# Update the cursor with the updated list
#
cursor.updateRow(row)