<?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 Why does it think I'm not in an edit session? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436312#M34304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;RuntimeError: Objects in this class cannot be updated outside an edit session [GDB_AGR_SECURE.AGR_ADMIN.ApiariesWGS_20160927]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When I run this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/283320_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to update the point locations based on attributes. &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2016 17:30:42 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2016-12-14T17:30:42Z</dc:date>
    <item>
      <title>Why does it think I'm not in an edit session?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436312#M34304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;RuntimeError: Objects in this class cannot be updated outside an edit session [GDB_AGR_SECURE.AGR_ADMIN.ApiariesWGS_20160927]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When I run this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/283320_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to update the point locations based on attributes. &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:30:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436312#M34304</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-12-14T17:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why does it think I'm not in an edit session?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436313#M34305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried setting the env workspace?&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/environments/current-workspace.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/environments/current-workspace.htm"&gt;Current Workspace (Environment setting)—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, your 'workspace' is just a variable. &amp;nbsp;It's not setting the arcpy.env.workspace. &amp;nbsp;Also, that workspace is pointing to 'C:\Users\joanna.grossman\AppDate\Roaming\ESRI\Desktop10.4\ArcCatalog'... which I'm pretty sure isn't correct.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436313#M34305</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2016-12-14T17:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does it think I'm not in an edit session?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436314#M34306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm doing that i lines 5-7. =(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436314#M34306</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-12-14T17:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why does it think I'm not in an edit session?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436315#M34307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm. Seems consistent with examples I've seen, but I'll take a look. Thx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436315#M34307</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-12-14T17:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why does it think I'm not in an edit session?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436316#M34308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, so I added arcpy.env.workspace = filepath, just for the heck of it and got the same error. Also, just FYI, that connection path is correct...Thanks, tho. &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/283329_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436316#M34308</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-12-14T17:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why does it think I'm not in an edit session?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436317#M34309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it look something like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;filepath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'path to the .sde'&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; filepath

edit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ‍‍‍‍arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Editor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;filepath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436317#M34309</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2021-12-11T19:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why does it think I'm not in an edit session?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436318#M34310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing line 10 to:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;edit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Editor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;filepath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Line 07 is unnecessary.&amp;nbsp; Furthermore, you need to pass the full path to the workspace, which is an SDE connection file in this case, and not the directory that contains the workspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 18:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436318#M34310</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-12-14T18:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why does it think I'm not in an edit session?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436319#M34311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aha. It didn't exactly, but I switched to your template and it stopped doing the edit sesh error. It moved onto&amp;nbsp; "RuntimeError: The version of your database server is not supported." So, now I have another fish to fry. Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 18:15:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436319#M34311</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-12-14T18:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why does it think I'm not in an edit session?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436320#M34312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep, just got there. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 18:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-it-think-i-m-not-in-an-edit-session/m-p/436320#M34312</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-12-14T18:16:15Z</dc:date>
    </item>
  </channel>
</rss>

