<?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: error return without exception set in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641431#M49988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With versioned SDE data in an Oracle database I use:&lt;/P&gt;&lt;P&gt;edit.startEditing(False, True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with unversioned SDE data in an Oracle database I use&lt;/P&gt;&lt;P&gt;edit.startEditing(False, False)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these settings work for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Oct 2014 15:22:27 GMT</pubDate>
    <dc:creator>MathiasKP</dc:creator>
    <dc:date>2014-10-19T15:22:27Z</dc:date>
    <item>
      <title>error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641424#M49981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the following code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code works great on a shapefile but as soon as i change the workspace to a SDE sqlexpress datatbase i get the following error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Traceback (most recent call last):
&amp;nbsp; File "C:\GIS\Python Scripts\AddressPoints\Point_2_Ca.py", line 125, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; edit.stopOperation()
SystemError: error return without exception set
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error is not specific on where the problem is, I've searched but i am unable to find the problem. where is the problem and how can i fix it to run with out errors?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As i mentioned before the code runs great against a shapefile and running against a shapefile takes about 4-6 seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i switch it to a SDE sqlexpress datatbase it takes 4 minutes then runs into the error. There is only 48 features in the SDE sqlexpress datatbase so the database is not very big. Why is this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import arcpy
from arcpy import env
import time
import datetime
import pythonaddins
import os

fc = "TonyTwoWay.DBO.TT"
workspace = r"Database Servers\DSD15_SQLEXPRESS.gds\TonyTwoWay (VERSION:dbo.DEFAULT)"
arcpy.env.overwriteOutput = True
arcpy.env.qualifiedFieldNames = False

# Start an edit session. Must provide the worksapce.
edit = arcpy.da.Editor(workspace)

# Edit session is started without an undo/redo stack for versioned data
#&amp;nbsp; (for second argument, use False for unversioned data)
edit.startEditing(True)

# Start an edit operation
edit.startOperation()

input = arcpy.GetParameterAsText(0)

rows = arcpy.SearchCursor(input)
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; geom = row.Shape
&amp;nbsp;&amp;nbsp;&amp;nbsp; X = geom.centroid.X
&amp;nbsp;&amp;nbsp;&amp;nbsp; Y = geom.centroid.Y
del rows, row
&amp;nbsp;&amp;nbsp; 
row_values = (X, Y, (X, Y))
cursor = arcpy.da.InsertCursor(fc, ["X_Coord", "Y_Coord", "SHAPE@XY"])
cursor.insertRow(row_values)
del cursor

####Select by location on parcels with created point
Parcellyr = "Taxparcels"

arcpy.MakeFeatureLayer_management(Parcellyr, "in_memory\Parcel layer")
entries = int(arcpy.GetCount_management(fc).getOutput(0))

for i in xrange(entries):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(fc, "in_memory\point layer", "\"OBJECTID\"={}".format(str(i) + ""))
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SelectLayerByLocation_management("in_memory\Parcel layer", "INTERSECT", "in_memory\point layer", "", "NEW_SELECTION")
&amp;nbsp;&amp;nbsp;&amp;nbsp; #if arcpy.Exists(pt_lyr): arcpy.Delete_management(pt_lyr) 

arcpy.CopyFeatures_management("in_memory\Parcel layer", "in_memory\Sel_Par")
table = "Vector.DBO.PARCELADMIN"
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddJoin_management("in_memory\Sel_Par", "ACCOUNT", table, "Acct", "KEEP_COMMON")
except BaseException as e:
&amp;nbsp;&amp;nbsp;&amp;nbsp; pass

arcpy.CopyFeatures_management("in_memory\Sel_Par","in_memory\ParLYR")
arcpy.MakeFeatureLayer_management("in_memory\ParLYR", "in_memory\Par")


#### populates fields

add_fields = ["ACCOUNT","SiteNum","OwnerName","SiteAddres","SiteNumSfx","SiteStreet","Predir","StreetType","Postdir", "SubName", "SiteCity", "SiteZip", "SubName"]

# fix args
if not isinstance(add_fields, list):
&amp;nbsp;&amp;nbsp;&amp;nbsp; # from script tool
&amp;nbsp;&amp;nbsp;&amp;nbsp; add_fields = add_fields.split(';')

# do not need this scratch file
fcOutput = r'C:\Temp\Default.gdb\temp_join' #'temp_join' when using workspace = r"C:\Temp\default.gdb"
arcpy.SpatialJoin_analysis("in_memory\Par", "in_memory\point layer", fcOutput, 'JOIN_ONE_TO_MANY', 'KEEP_COMMON')

# grab oid field from points
oid_t = arcpy.Describe(fc).OIDFieldName

Field4 = "SubNum" #Field from spaital Join
Field4a = "SiteSubNum"
#Field5 = "City" #Field from spaital Join
#Field5a = "BusinsName"

# init rowW and rowR
curR = arcpy.SearchCursor(fcOutput)
join_dict = dict([(r.JOIN_FID,[r.getValue(f) for f in add_fields]) for r in curR])
del curR

Fields = ["SubNum","City",]

rows = arcpy.da.SearchCursor(fcOutput, Fields)
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Num1 = rows[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp; #Num2 = rows[1]
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
# Now update the new target
curW = arcpy.UpdateCursor(fc)
for row in curW:
&amp;nbsp;&amp;nbsp;&amp;nbsp; t_oid = row.getValue(oid_t)
&amp;nbsp;&amp;nbsp;&amp;nbsp; if t_oid in join_dict:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for f in add_fields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue(f, join_dict[t_oid][add_fields.index(f)])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue('GIS_STEW', "Canyon Co")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue('IssuedBy', "TA")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue('Status', "Active")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue('StartDate', datetime.datetime.now().strftime('%m/%d/%Y'))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue('SiteState', "ID")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue('SiteCounty', "Canyon")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue('StreetName', row.SiteStreet + " " + row.StreetType)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue('Verified', "Yes,TA")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue(Field4a, Num1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #row.setValue(Field5a, Num2)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #row.StreetName = curR.SiteStreet
&amp;nbsp;&amp;nbsp;&amp;nbsp; curW.updateRow(row)
del row, curW, rows


#arcpy.SelectLayerByAttribute_management(Parcellyr, "CLEAR_SELECTION")
arcpy.Delete_management("in_memory\Parcel layer")
arcpy.Delete_management("in_memory\point layer")
arcpy.Delete_management("in_memory\Sel_Par")
arcpy.Delete_management("in_memory\ParLYR")
arcpy.Delete_management("in_memory\Par")
#arcpy.Delete_management(r'in_memory\temp_join')

# Stop the edit operation.
edit.stopOperation()

# Stop the edit session and save the changes
edit.stopEditing(True)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 17:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641424#M49981</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2014-04-14T17:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641425#M49982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may be seeing this error because the dataset is not registered as versioned within the SQL Server geodatabase.&amp;nbsp; Can you try ONE of the following?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Change the edit.startEditing(True) line to &lt;/SPAN&gt;&lt;STRONG&gt;edit.startEditing(True,False)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Register the data you are trying to edit as versioned (either manually from ArcGIS Desktop or via Python before opening the edit session)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax for the startEditing tool is &lt;/SPAN&gt;&lt;STRONG&gt;startEditing ({with_undo}, {multiuser_mode})&lt;/STRONG&gt;&lt;SPAN&gt;, which is explained &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018w00000005000000"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; I think the issue is that you aren't specifying the right boolean for the multiuser mode.&amp;nbsp; "When False, you have full control of editing a nonversioned, or versioned dataset.&amp;nbsp; If your data is nonversioned and you use stopEditing(False), your edit will not be committed (otherwise, if set to True, your edits will be committed).&amp;nbsp; The default value is True."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 00:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641425#M49982</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2014-04-15T00:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641426#M49983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;crafty762 thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data is registered as versioned. That was one of the things i saw come up when i searched for the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the edit.startEditing(True) line to edit.startEditing(True,False) and got pasted the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code seems to run fine, but i get this error now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\GIS\Python Scripts\AddressPoints\Create_Point_2_Ca.py", line 34, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow(row_values)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: workspace already in transaction mode&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641426#M49983</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2014-04-15T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641427#M49984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The error"RuntimeError: workspace already in transaction mode" happens when i have my data as versioned and set the line to edit.startEditing(True,False).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have unversioned the data and change the edit.startEditing(True) line to edit.startEditing(True,False). I get the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; edit.stopOperation()
SystemError: error return without exception set&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have registered as versioned and changed the line back to edit.startEditing(True) now i get this error,&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;edit.stopOperation()
SystemError: error return without exception set&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So no matter which way i change the code i get the same error. Anyone have any other ideas what's going on and how can i fix this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641427#M49984</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2021-12-12T03:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641428#M49985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The error"RuntimeError: workspace already in transaction mode" happens when i have my data as versioned and set the line to edit.startEditing(True,False).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have unversioned the data and change the edit.startEditing(True) line to edit.startEditing(True,False). I get the same error.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; edit.stopOperation()
SystemError: error return without exception set&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;i have registered as versioned and changed the line back to edit.startEditing(True) now i get this error,&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;edit.stopOperation()
SystemError: error return without exception set&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;So no matter which way i change the code i get the same error. Anyone have any other ideas what's going on and how can i fix this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever get an answer to this? We are having a similar issue. It doesn't always fail either. On some environments it fails with this error sometimes, and on others it never fails.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641428#M49985</guid>
      <dc:creator>BryanPrice3</dc:creator>
      <dc:date>2021-12-12T03:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641429#M49986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not, i am still messing around with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 16:32:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641429#M49986</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2014-07-17T16:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641430#M49987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm also experiencing the same problem.&amp;nbsp; Did anyone ever get an answer to this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 21:52:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641430#M49987</guid>
      <dc:creator>AllenCousins</dc:creator>
      <dc:date>2014-09-16T21:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641431#M49988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With versioned SDE data in an Oracle database I use:&lt;/P&gt;&lt;P&gt;edit.startEditing(False, True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with unversioned SDE data in an Oracle database I use&lt;/P&gt;&lt;P&gt;edit.startEditing(False, False)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these settings work for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2014 15:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641431#M49988</guid>
      <dc:creator>MathiasKP</dc:creator>
      <dc:date>2014-10-19T15:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641432#M49989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same issue: &lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin-bottom: 1px !important; margin-left: 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="background-color: inherit; color: black; font-weight: inherit; font-size: 9pt !important; font-style: inherit;"&gt;edit.stopOperation()&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;SystemError: error return without exception set&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem and solution:&amp;nbsp; I forgot edit.startOperation()!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workspace already in transaction mode:&amp;nbsp;&amp;nbsp; my problem and solution:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Check to make sure the field that need to be updated, surely exist.&amp;nbsp;&amp;nbsp; Add an If to check the filed, then &lt;/P&gt;&lt;P&gt;the problem is gone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 05:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641432#M49989</guid>
      <dc:creator>LangDeng</dc:creator>
      <dc:date>2015-03-06T05:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641433#M49990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also having an issue with this, but for me it is when I run my script as a GP Service (no problems when running it in ArcMap). My error comes when I edit.startEditing(False, True) - and yes, my data is versioned (in a feature dataset if that makes a difference). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not 100% sure, but it might be something to do with the numpy version. I have not tried this yet so I am not sure if upgrading to a more recent version of numpy will either break my ArcMap, python or if it will actually make a difference with this error. I will try and test this on a VM first and will post back here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might also be a thing between running the script using python 32bit and python 64bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/scipy/scipy/issues/4285" title="https://github.com/scipy/scipy/issues/4285"&gt;"SystemError: error return without exception set" when indexing with -1 · Issue #4285 · scipy/scipy · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jul 2015 05:53:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641433#M49990</guid>
      <dc:creator>JulianInskip</dc:creator>
      <dc:date>2015-07-26T05:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641434#M49991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the user already in an edit session in Arcmap before your script starts editing?&amp;nbsp; If so then I would check with tech support and look into &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;[BUG-000089820: The Editor class from ArcPy returns an error message when the 'stopEditing()' command is executed when an existing edit session is open on the same workspace. "RuntimeError: Start edit session."]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;I had a situation where the user is already in an edit session so I didn't think I had to start editing in python script but the tech support person had me start editing.&amp;nbsp; However when I went to stopEditing it failed with the error you received and they pointed out the bug.&amp;nbsp; In my case I just removed the stopediting from my script and it seems to be functioning.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 20:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641434#M49991</guid>
      <dc:creator>ShannonPorter</dc:creator>
      <dc:date>2015-09-17T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641435#M49992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Just a note on this that may help others. I had this error exactly as explained in the original post writing to a SDE featureclass and it turned out the issue was a length of a field. I had a text field length 10 and was trying to write some text to it that was longer than 10. The cursor ran through without a problem but when I tried to commit the edits with editor.StopOperation I got the error "&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;SystemError: error return without exception set". To resolve the issue all I had to do was make the text field larger.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Callum&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 20:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641435#M49992</guid>
      <dc:creator>CallumSmith2</dc:creator>
      <dc:date>2017-08-23T20:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641436#M49993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Callum,&lt;/P&gt;&lt;P&gt;you nailed it!&amp;nbsp;After truncating some values to the max field length, the edit operation was successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641436#M49993</guid>
      <dc:creator>South_JordanCity_of</dc:creator>
      <dc:date>2017-08-24T14:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641437#M49994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Callum,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was also the problem for me. One sneaky field in the midst of dozens that was just a little short in field length. Very difficult to diagnose without trying to edit values in each field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 21:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641437#M49994</guid>
      <dc:creator>deleted-user-st4HsVxccxgs</dc:creator>
      <dc:date>2018-01-10T21:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641438#M49995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helped me too, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641438#M49995</guid>
      <dc:creator>ChaimSchwartz3</dc:creator>
      <dc:date>2018-02-26T16:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641439#M49996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;For me it happend when I ran my script&lt;SPAN&gt;&amp;nbsp;for populating a &lt;STRONG&gt;turntable&lt;/STRONG&gt; which made&amp;nbsp;part of a network dataset, by copying the features from another feature class not belonging to the netowrk. After some tests, I finally found out the cause of getting the useless message &lt;EM style="background-color: #f6f6f6; color: #000000;"&gt;&lt;STRONG&gt;SystemError:&amp;nbsp;error&amp;nbsp;return&amp;nbsp;without&amp;nbsp;exception&amp;nbsp;set:&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;even&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;though I had added the turntable to the network before it being populated, I didn't rebuilt&amp;nbsp;it&amp;nbsp;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;So, I ran Build Network GP and the script worked like a charm!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jul 2018 00:07:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/641439#M49996</guid>
      <dc:creator>CarlosRibeiro</dc:creator>
      <dc:date>2018-07-01T00:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/1108150#M62663</link>
      <description>&lt;P&gt;Thank you so much, Callum! I was getting this error (&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;SystemError: error return without exception set") while simply calculating centroid coordinates using CalculateGeometry (through arcpy). Your entry here helped me realize I needed to change the field type from FLOAT to DOUBLE.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 22:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/1108150#M62663</guid>
      <dc:creator>CynthiaRoush2</dc:creator>
      <dc:date>2021-10-15T22:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: error return without exception set</title>
      <link>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/1320274#M68450</link>
      <description>&lt;P&gt;I am working with arcpy in Python 3.7.11 and ArcGIS Pro 2.9.5.&amp;nbsp; I was getting this error: "SystemError: &amp;lt;method 'stopOperation' of 'Workspace Editor' objects&amp;gt; returned NULL without setting an error"&amp;nbsp; The problem was that I was putting a string value into a text field which was too long.&amp;nbsp; The field was 15 characters, but the value was 19 characters.&amp;nbsp; Since the error message doesn't mention anything about that, I only found the problem when I decided to print the values of the row!&amp;nbsp; I hope this helps someone else.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 18:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-return-without-exception-set/m-p/1320274#M68450</guid>
      <dc:creator>RogerDunnGIS</dc:creator>
      <dc:date>2023-08-18T18:55:04Z</dc:date>
    </item>
  </channel>
</rss>

