I am using the testing data in a file deodatabase. It is not a geometric network. The features are about 2000 to flip at one time. I use code exactly like this.
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.
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
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.