laptop and a wrench

Bug

The Data Access Module's Update Cursor cannot commit the row with updateRow(row) when using a geometric network's feature class and a shape token other than shape@.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM085941
SubmittedOctober 24, 2012
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.1
Operating SystemWindows OS
Operating System Version7 64 Bit
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

1. Use Shape@ instead of the other shape tokens when updating. 2. Do not use a shape token. 3. Nest a search cursor within the update cursor to use the shape tokens for reference. For example:ed = arcpy.da.Editor(ws)ed.startEditing(with_undo=True, multiuser_mode=True)ed.startOperation() with arcpy.da.UpdateCursor(fc, ["OID@", "LotNo"]) as csr: for row in csr: print row[1] row[1] = str(row[1]) + ".new" where = '"ObjectID" = %i'%row[0] print where with arcpy.da.SearchCursor(fc, "SHAPE@XY", where) as scsr: for row2 in scsr: print row2[0] csr.updateRow(row)

Steps to Reproduce

Bug ID: NIM085941

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options