Hi.
I am having the following issue when i try to update an SDE Geodatabase featureclass geometry from arcpy
Using:
ArcGIS 10.3.1
SQL Server Geodatabase
Line featureclass with enabled: Archiving , Editor Tracking and Registered as Versioned.
The line featureclass also participates in a replica as the source layer.
The line fetureclass can be edited fine from arcmap.
The issue:
Because we do receive new updated line geometries (features) from another source i have bulid a python script that joins the 2 datasets based on an attribute key and and tries to update the geometry on the Line Featureclass.
I am using the following code tu update the geometry.
fieldNames = ['ID', 'SHAPE@','SHAPE@WKT']
edit.startEditing()
edit.startOperation()
with arcpy.da.UpdateCursor(line_layer, fieldNames) as updateCursor:
for tmpRow in updateCursor:
tmpRow[1] =
updateCursor.updateRow(tmpRow)
edit.stopOperation()
edit.stopEditing(True)
The code runs without any error but the geometry is not updated. I tested the code for other attributes and they were updated correctly.
Any ideas ?
Thanks.