Insert Cursor Error

308
4
02-11-2019 11:53 AM
GrantHaynes
Occasional Contributor

Hi all,

I'm having some trouble with an insert cursor, I keep getting the error, 

Traceback (most recent call last):
File "<string>", line 129, in execute
SystemError: error return without exception set

Failed to execute (Tool)

Can anyone help me with this error?

with arcpy.da.Editor(r"E:\Time_Series_Graphing_project") as edit:
   with arcpy.da.InsertCursor(r"E:\Time_Series_Graphing_project\TemporalData", ("POINTID", "DataIndex", "Value"))as cursor:
      cursor.insertRow((PointIndex, index, data))
Tags (2)
0 Kudos
4 Replies
DanPatterson_Retired
MVP Esteemed Contributor

which is line 129? 

Could be the double nested 'with' statements

The code example in the help uses a different structure

Editor—Data Access module | ArcGIS Desktop 

0 Kudos
GrantHaynes
Occasional Contributor

Line 129 is the insertRow

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

that error has been associated... but not limited too... what is trying to be inserted is too big or of the wrong type for the fields it is trying to go into

0 Kudos
GrantHaynes
Occasional Contributor

I got it to work with the older arcpy.InsertCursor, thanks for your help.

0 Kudos