using ArcMap 10.5.
look i want to simply load the data from one gdb to other gdb... but on my first attempt the geometry of polygons and lines was not uploaded. I read in the forums that i needed to include the "SHAPE@". I tried as such, but the result is bad... i cannot understand how to fix it. The error message is: AttributeError: 'unicode' object has no attribute editable.
can someone suggest me something?
env.workspace = datasets
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
#print '\t', fc
count=count_records(fc) # counts the features within each FC
listfields = arcpy.ListFields(fc)
for l in range(len(listfields)):
## listfields[l] = listfields[l].name
## print listfields
listfields = [f.name for f in listfields if f.editable and f.type != "Geometry"] + ["SHAPE@"]
with arcpy.da.SearchCursor(fc,listfields) as cur:
with arcpy.da.InsertCursor(GDBDwgs + "\\" + fc, l) as icur:
for row in cur:
print '\t', fc