<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SystemError: error return without exception set in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671164#M51983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out it was a combination of tests with a different projection/spatial reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had&amp;nbsp;worked on a copy I got with the same data, just in a different projection. It seems adding lines to a position outside the extent (far off) was the issue and this caused a non-defined error, which is not helpful ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue solved. *phew*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 13:44:53 GMT</pubDate>
    <dc:creator>MatthiasBuehler3</dc:creator>
    <dc:date>2016-10-18T13:44:53Z</dc:date>
    <item>
      <title>SystemError: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671161#M51980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have run into a script error today with some code that was &lt;STRONG&gt;not altered since and worked yesterday&lt;/STRONG&gt;..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have tracked it down to this example (some paths shortened):&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #2e75b6;"&gt;import arcpy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e75b6;"&gt;spatialRef = arcpy.Describe('Y:/......../xyz.gdb/BeispielLeitungenZ').spatialReference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e75b6;"&gt;array = arcpy.Array()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e75b6;"&gt;array.append(arcpy.Point(100000, 40000, 500))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e75b6;"&gt;array.append(arcpy.Point(100000, 42000, 510))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e75b6;"&gt;createCursor = arcpy.da.InsertCursor('...../xyz.gdb/Leitungen', ['SHAPE@', 'quellLeitung', 'quellStartMastenID', 'quellEndMastenID'])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e75b6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #2e75b6;"&gt;cable = arcpy.Polyline(array, spatialRef, True, False)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e75b6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #2e75b6;"&gt;createCursor.insertRow([cable, 1, 1, 1])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The error I get&amp;nbsp;is:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="margin: 1.5pt 0cm 1.5pt 7.5pt;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #d94c1d;"&gt;Traceback (most recent call last):&amp;nbsp; File ".....\pyScripts\createCables.py", line 37, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; createCursor.insertRow([cable, 1, 1, 1])SystemError: error return without exception set&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 1.5pt 0cm 1.5pt 7.5pt;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #d94c1d;"&gt;Failed to execute (createCables).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody have an idea why this could be?&lt;/P&gt;&lt;P&gt;The script runs fine with the last line commented out.&lt;/P&gt;&lt;P&gt;The attr table of the target FC shows the fields (correctly):&lt;/P&gt;&lt;P&gt;OBJECTID, Shape, Shape_Length, quellLeitung,&amp;nbsp;quellStartMastenID,&amp;nbsp;quellEndMastenID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is hard to track down, as I have no clue what the exception actually is ..&lt;/P&gt;&lt;P&gt;Something with the software must have changed. [Or license? I'm actually switching accounts.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input welcome! Thanks!&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 14:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671161#M51980</guid>
      <dc:creator>MatthiasBuehler3</dc:creator>
      <dc:date>2016-10-17T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: SystemError: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671162#M51981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the code worked yesterday and stopped working today, I wonder whether the feature class or file geodatabase got corrupted.&amp;nbsp; What if you try the code using a freshly created file geodatabase with a freshly created feature class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:25:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671162#M51981</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-10-17T17:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: SystemError: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671163#M51982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey .. I'll try that .. Thanks for the pointer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;No, that did not work either. The data is&amp;nbsp;intact...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 08:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671163#M51982</guid>
      <dc:creator>MatthiasBuehler3</dc:creator>
      <dc:date>2016-10-18T08:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: SystemError: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671164#M51983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out it was a combination of tests with a different projection/spatial reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had&amp;nbsp;worked on a copy I got with the same data, just in a different projection. It seems adding lines to a position outside the extent (far off) was the issue and this caused a non-defined error, which is not helpful ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue solved. *phew*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 13:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671164#M51983</guid>
      <dc:creator>MatthiasBuehler3</dc:creator>
      <dc:date>2016-10-18T13:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: SystemError: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671165#M51984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you create the code the other day and it worked that day, or has the code been around working for a while and just stopped working?&amp;nbsp; The sudden breakage doesn't make sense.&amp;nbsp; Did anything else change between one day and the next?&amp;nbsp; Different machine?&amp;nbsp; Different version of ArcGIS?&amp;nbsp; New software installed on the machine?&amp;nbsp; Did someone change the spatial reference of BeispielLeitungenZ so now it doesn't match the feature class you are trying to insert into?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 13:52:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671165#M51984</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-10-18T13:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: SystemError: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671166#M51985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It indeed was a change in the 'BeispielLeitungenZ' FC that was given back to me from an other person with added Z information of the point features, but the spatialReference of that new FC was different than the first one, which caused the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had&amp;nbsp;tracked all code down and the intermediate results were all still correct (point positions, ..), with the new data, which did not give me the clue of the wrong spatialRef.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/systemerror-error-return-without-exception-set/m-p/671166#M51985</guid>
      <dc:creator>MatthiasBuehler3</dc:creator>
      <dc:date>2016-10-18T14:28:57Z</dc:date>
    </item>
  </channel>
</rss>

