Hi,
I have run into a script error today with some code that was not altered since and worked yesterday..
I have tracked it down to this example (some paths shortened):
import arcpy
spatialRef = arcpy.Describe('Y:/......../xyz.gdb/BeispielLeitungenZ').spatialReference
array = arcpy.Array()
array.append(arcpy.Point(100000, 40000, 500))
array.append(arcpy.Point(100000, 42000, 510))
createCursor = arcpy.da.InsertCursor('...../xyz.gdb/Leitungen', ['SHAPE@', 'quellLeitung', 'quellStartMastenID', 'quellEndMastenID'])
cable = arcpy.Polyline(array, spatialRef, True, False)
createCursor.insertRow([cable, 1, 1, 1])
The error I get is:
Traceback (most recent call last): File ".....\pyScripts\createCables.py", line 37, in <module> createCursor.insertRow([cable, 1, 1, 1])SystemError: error return without exception set
Failed to execute (createCables).
Does somebody have an idea why this could be?
The script runs fine with the last line commented out.
The attr table of the target FC shows the fields (correctly):
OBJECTID, Shape, Shape_Length, quellLeitung, quellStartMastenID, quellEndMastenID
This is hard to track down, as I have no clue what the exception actually is ..
Something with the software must have changed. [Or license? I'm actually switching accounts.]
Any input welcome! Thanks!
Matt