I ran the following code on a gdb target and it worked just fine. Now that I've redirected at an SDE target I am getting an ambiguous error:
def edit_feature_class(structure_data,workspace):
fc = "Target Feature"
fields = ["Target Field"]
descriptions = structure_data["Target Field"].tolist()
with arcpy.da.Editor(workspace) as edit:
with arcpy.da.UpdateCursor(fc, fields) as cursor:
i=0
for row in cursor:
row[0] = descriptions[i]
cursor.updateRow(row)
i = i+1
The error it throws is: with arcpy.da.UpdateCursor(fc, fields) as cursor TypeError Cannot update table
Any help is appreciated,
Thank you
f