I am trying to flip selected pipelines using stand-alone python window. Below are the steps I used:
1). line join attributes from other tables (MakeFeatureLayer, AddJoin);
2). select lines based on the joined attributes (SelectLayerByAttribute);
3). remove joins (RemoveJoin);
4). flip line on the selected lines (FlipLine_edit with or without MakeFeatureLayer after the selection).
It is shown the same error:
ERROR 999999: Error executing function.
Workspace or data source is read only.
Workspace or data source is read only.
Failed to execute (FlipLine).
Anyone has any solution?
Thanks.
Can you post your actual script? What is the line data source? Is it SDE? Is it a geometric network? What license level do you have? How many features are you trying to flip at one time? I found it crashes if I try to flip too many at one time (more than about 10,000). Did you use code like this for the flipline section?import arcpy
try:
arcpy.FlipLine_edit(inFeatures)
except Exception, e:
# If an error occurred, print line number and error message
import traceback, sys
tb = sys.exc_info()[2]
print "Line %i" % tb.tb_lineno
print e.message