Executing: AbandonFeatures 'Water Mains' "Water Abandoned Lines" "Water Abandoned Points" true LINETYPE POINTTYPE "Record Set" Start Time: Fri May 10 09:05:12 2013 Running script AbandonFeatures... Starting Abandon Selected Features Script Processing Parameters Abandoning Selected Features in GISData.GISADMIN.wMain Water Mains is a Polyline with 1 selected Traceback (most recent call last): File "C:\IS_Support\UtilityNetworkEditingfor10.1\Application\Abandon Tools\AbandonSelectedFeatures.py", line 204, in <module> newRow.setValue(fieldName, row.getValue(fieldName)) File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\arcobjects\arcobjects.py", line 1040, in setValue return convertArcObjectToPythonObject(self._arc_object.SetValue(*gp_fixargs(args))) RuntimeError: ERROR 999999: Error executing function. Field is not editable. ERROR 999999: Error executing function. Field is not editable. Script Complete Completed script AbandonFeatures... Failed to execute (AbandonFeatures). Failed at Fri May 10 09:05:13 2013 (Elapsed Time: 1.00 seconds)
Solved! Go to Solution.
Lance,
We recently released a preview version of the abandon/unabandon tools that fixes the issue of non-editable fields + a host of others. You can find it here.
Alan,
Are both the water layers and the abandon layers editable?
Are you in an edit session and you can edit both layers when you run the tools?
I just ran into this on the newest version (2/2017) as well, on both GBD and SDE enterprise databases. After looking into the issue further found the python scripts AbandonFeatures.py and UnAbandonAssets.py were trying to modify the GlobalID fields which are not editable. If your database is not utilizing Global id's the script works great. To correct this three lines of code need to be modified to exclude modifying the GlobalID values. In AbandonFeatures.py lines 203 and 244 by appending code to exclude GlobalID.
202 for fieldName in fieldListLines:
203 if fldInfo.findFieldByName(fieldName) >= 0 and fieldName != "GlobalID":
204 arcpy.AddMessage("fieldName: " + fieldName)
205 newRow.setValue(fieldName, row.getValue(fieldName))
...
243 for fieldName in fieldListPoints:
244 if fldInfo.findFieldByName(fieldName) >= 0 and fieldName != "GlobalID":
245 newRow.setValue(fieldName, row.getValue(fieldName))
And in line 205 of UnAbandonAssets.py the same.
204 for fieldName in fieldList:
205 if targetFldInfo.findFieldByName(fieldName) >= 0 and fieldName != "GlobalID":
206 newRow.setValue(fieldName, row.getValue(fieldName))
Lance,
We recently released a preview version of the abandon/unabandon tools that fixes the issue of non-editable fields + a host of others. You can find it here.
Paul,
Thanks for the updated tools, they appear to be working. I did find one
other sudo glitch.
When you unabandon Water Hydrant Valves or Water System Valves they do not
initially show. The “HYDRFLAG” comes back in as NULL and will not display
because of the Definition Query on these two layers. I reset one layer to
include “OR HYDRFLAG IS NULL” so it will at least display.