I am trying to strip "$" from attributes in the Name field or all the fields in a feature class table prior to exporting out the table.
Could you strip the "$" from attributes in the Name field or all the fields in arcpy.MakeQueryTable_management prior to exporting if so how? I am not sure which would be the fastest?
I have the following but i am getting an error on line 8.
line 8, in <module>
r.OwnerName = s.strip("$")
AttributeError: 'NoneType' object has no attribute 'strip'
import arcpy fc = "C:/Temp/Default.gdb/yogurt" rows = arcpy.UpdateCursor(fc) for r in rows: s = r.Name r.Name = s.strip("$") rows.updateRow(r)