Hi
I am got an issue where I am trying to insert features into a feature class that participates in a geometric network.
Firstly I guess the question is "Is this even possible?"
When I try to insert a record into the featureclass I am getting this error: SystemError('error return without exception set',)
If I remove the geometric network or use the code on another feature class that does not participate in a geometric network it works fine. I cannot however remove the geometric network from the production database.
If anybody has any ideas on this issue that would be appreciated.
cheers
Callum
From here...
This statement
The following includes some dataset types that can only be edited within an edit session:
But I have not clue if it applies to your situation.
Good to know...I wish you could make notes in the margins of the online help
Thanks Neil
I do have an edit session open as the featureclass is also in a versioned enterprise geodatabase.
In my testing I have copied the data to a file gdb and it still does not work. If I remove the geometric network the it does work???
cheers
Callum
Thanks Dan
Yes I do have an edit session open as the featureclass participates in a geometric network and is also versioned.
Not sure why it is failing as the error message is not very helpful!!
cheers
Callum
Hi
I did not tried it but you can start edit in ArcMap and run your script in the python window.
Maybe it will work...
Have Fun
Yes I have tried running the script from a tool within arcmap and it still gives me the same issue.
cheers
Callum
The insertRow method of arcpy.da.InsertCursor fails when working with data in a geometric network.
N/A
The Append tool works fine for features participating in a geometric network.
1. Fill an empty feature class outside the geometric network with records using an insert cursor.
2. Use the Append tool to add the records to the feature class in the geometric network.
http://support.esri.com/en/bugs/nimbus/TklNMTAyNzc4