My UpdateCursor isn't working in arcpy. Here's my code:
urows = arcpy.UpdateCursor(firstDatabase+ os.sep + "Temp")for urow in urows: urow.Import_Date = time.strftime("%d/%m/%Y") urow.File_Name = str(table) urows.updateRow(urow)It will always error out on the Import_Date field saying "error executing function".
The Import_Date is a 'date' field.
Any ideas? Feel like it's a simple solution.
أكثر...
urows = arcpy.UpdateCursor(firstDatabase+ os.sep + "Temp")for urow in urows: urow.Import_Date = time.strftime("%d/%m/%Y") urow.File_Name = str(table) urows.updateRow(urow)It will always error out on the Import_Date field saying "error executing function".
The Import_Date is a 'date' field.
Any ideas? Feel like it's a simple solution.
أكثر...