I am new to Python and ArcPy.
I am testing the script below which is running for a point feaure class, but not for a line feature class.
In the latter case, I am getting the following error message: "exceptions.SystemError: error return without exception set" for line 16.
Thank you in advance,
Solved! Go to Solution.
The "SHAPE@XY" token doesn't return an ArcPy Point object, it returns "a tuple of the feature's centroid x,y coordinates." Line 15 of your code replaces a Python tuple with an ArcPy Point object, which is what I am guessing is causing the error on Line 16. Does the code work if you update Line 15 to:
row = (306400, 4098400)
I am not trying to create a line feature class, but rather shift a feature of it. Both point and line feature classes already exist. And, yes, "OBJECTID = 4" is a valid expression in both cases.
You didn't catch it because documenting important functionality like that on a third-party blogging platform is, well, poor taste. It would be nice and a bit more enterprise-y if the ArcGIS Python development team did more blogging within an Esri domain, say GeoNet maybe.