<?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 Drawing error when running python script tool in SDE in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/drawing-error-when-running-python-script-tool-in/m-p/538229#M42094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have recently developed a python script tool which creates a unique ID and fills in a few fields in response to user input. In the most part it works fine. However, whilst editing in SDE I run into the error message "One or more layers failed to draw: The requested operation is invalid on a closed state".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Closed_State.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/107938_Closed_State.png" style="width: 620px; height: 313px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't happen all the time but I'm concerned it may develop into a more serious problem. I am aware this problem has been addressed elsewhere and the consensus seems to be that arcpy.da.editor should be used to combat this problem. My problem is I only have access to ArcGIS 10.0 and so don't have access to arcpy.da.editor. Is there an equivalent workaround using 10.0? and how should it be implemented?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should mention that running my script outside of the SDE editing session seems to bypass this problem. My script does what its supposed to do and I haven't, as yet, come across the above error. Can anyone confirm that this is the right thing to do regarding this problem? Or am I yet to run into the aforementioned error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help is appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2015 16:38:07 GMT</pubDate>
    <dc:creator>ChristopherEarley</dc:creator>
    <dc:date>2015-06-08T16:38:07Z</dc:date>
    <item>
      <title>Drawing error when running python script tool in SDE</title>
      <link>https://community.esri.com/t5/python-questions/drawing-error-when-running-python-script-tool-in/m-p/538229#M42094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have recently developed a python script tool which creates a unique ID and fills in a few fields in response to user input. In the most part it works fine. However, whilst editing in SDE I run into the error message "One or more layers failed to draw: The requested operation is invalid on a closed state".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Closed_State.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/107938_Closed_State.png" style="width: 620px; height: 313px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't happen all the time but I'm concerned it may develop into a more serious problem. I am aware this problem has been addressed elsewhere and the consensus seems to be that arcpy.da.editor should be used to combat this problem. My problem is I only have access to ArcGIS 10.0 and so don't have access to arcpy.da.editor. Is there an equivalent workaround using 10.0? and how should it be implemented?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should mention that running my script outside of the SDE editing session seems to bypass this problem. My script does what its supposed to do and I haven't, as yet, come across the above error. Can anyone confirm that this is the right thing to do regarding this problem? Or am I yet to run into the aforementioned error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help is appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 16:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/drawing-error-when-running-python-script-tool-in/m-p/538229#M42094</guid>
      <dc:creator>ChristopherEarley</dc:creator>
      <dc:date>2015-06-08T16:38:07Z</dc:date>
    </item>
  </channel>
</rss>

