Hi,
I'm trying write data to an Enterprise geodatabase but it still throws error return without exception set (for clarification - error throws row cursor.insertRow(data).
I have method:
def __insertDataInternal(self, table, cols, data):
with arcpy.da.InsertCursor(table, cols) as cursor:
cursor.insertRow(data)which I'm using for write to local gdb and remote (sde). For local gdb is everything alright and data are inserted. But when I use this method for write to Oracle it throws error.
Code for calling to write to EGDB looks this:
db = r"C:\Temp\file.sde"
edit = arcpy.da.Editor(db)
edit.startEditing(False, True)
edit.startOperation()
self.__insertDataInternal(table_path, cols, data)
edit.stopOperation()
edit.stopEditing(True)
I'm using versioned DB (Oracle) and the connection is set looking to version I need. All input data and cols are correct.
When I was googling so I found only solutions with errors from startOperation() or startEditing() but nowhere is error straight from insertRow().