bossun

unable to delete a row

Discussion created by bossun on Mar 29, 2012
Latest reply on Mar 30, 2012 by curtvprice
Hello,

I'm quite new in GIS systems and i would need some help from you.

I'm trying to write a python script in order to delete a set of rows in ArcCatalog 10

import arcpy

arcpy.env.workspace="Database Connections\Connection to V332.sde"

fcl2 = "UTARC.FDS_ELECTRICITY\UTARC.FCL_E_STATION_C_PL"
dCap = "UTARC.UT_DATA_CAPTURE"

######### FCL2  ######### 
fcl2R = arcpy.UpdateCursor(fcl2,"OBJ_ID='201203271413450000000J'")
for r in fcl2R:
   fcl2R.deleteRow(r)

######### UT_DATA_CAPTURE  ######### 
dCapR = arcpy.UpdateCursor(dCap,"OBJ_ID='201203271413450000000J'")
for r in dCapR:
    dCapR.deleteRow(r)    
     


When I run this code there is no errors and it deletes well the row. However  when I restart ArcCatalog the deleted row comes back except un te UT_DATA_CAPTURE.

Any Idea?

Outcomes