<?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: Setting workspace to SDE feature dataset in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236382#M18397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If my GIS session is through a Citrix connection, do you know what would be my database connection? I can't seem to get my script to start Edit session.&lt;/P&gt;&lt;P&gt;Any helps will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2017 20:00:06 GMT</pubDate>
    <dc:creator>DanNguyen</dc:creator>
    <dc:date>2017-10-20T20:00:06Z</dc:date>
    <item>
      <title>Setting workspace to SDE feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236378#M18393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a python add-in that successfully edits data in a file .gdb (with or without invoking the editor in the script), but I can't edit data in an SDE feature dataset.&amp;nbsp; I can edit the SDE data (9.3) manually in ArcMap, and the add-in successfully interacts with the SDE data using search cursors.&amp;nbsp; SP1 is installed.&amp;nbsp; Any suggestions about what might be causing the error in response to this code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;workspace = r"Database Connections\GDB_HMSDEV.sde\GDB_HMSDEV.HMSADMIN.KerrySandbox" edit = arcpy.da.Editor(workspace)&lt;/PRE&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:\Users\kalley\AppData\Local\ESRI\Desktop10.1\AssemblyCache\{87D25F75-9A62-5BC9-A006-4B496936EC0F}\ShieldToolTest_addin.py", line 79, in onLine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; edit = arcpy.da.Editor(workspace)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: cannot open workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can provide the full code if necessary...just wanted to keep it simple first.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 13:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236378#M18393</guid>
      <dc:creator>KerryAlley</dc:creator>
      <dc:date>2013-03-12T13:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Setting workspace to SDE feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236379#M18394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kerry:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you are using ArcGIS v10.1 you might need to specify the full path to the SDE connection and just&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;r"Database Connections\GDB_HMSDEV.sde\GDB_HMSDEV.HMSADMIN.KerrySandbox"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 17:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236379#M18394</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-03-12T17:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setting workspace to SDE feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236380#M18395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kerry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You won't be able to set the workspace to a feature dataset.&amp;nbsp; It will need to be set only to the sde geodatabase.&amp;nbsp; When you specify a feature class within the feature dataset, just add the feature dataset name first.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;env.workspace = r"Database Connections\SQLSERVER.sde"
desc = arcpy.Describe("Structures\Bridges")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:55:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236380#M18395</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T11:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting workspace to SDE feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236381#M18396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks mvolz47!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you said finally sank into my thick head... and set off a whole cascade of Eureka moments.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I simply changed the workspace (using the .workspacePath of a layer instead of its .dataSource):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;workspace = rdsmall_lyr.workspacePath&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;which was equivalent to the SDE connection path:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;workspace = r"C:\Users\kalley\AppData\Roaming\ESRI\Desktop10.1\ArcCatalog\GDB_HMSDEV.sde"&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and everything went smoothly!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 20:55:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236381#M18396</guid>
      <dc:creator>KerryAlley</dc:creator>
      <dc:date>2013-03-12T20:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting workspace to SDE feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236382#M18397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If my GIS session is through a Citrix connection, do you know what would be my database connection? I can't seem to get my script to start Edit session.&lt;/P&gt;&lt;P&gt;Any helps will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 20:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-workspace-to-sde-feature-dataset/m-p/236382#M18397</guid>
      <dc:creator>DanNguyen</dc:creator>
      <dc:date>2017-10-20T20:00:06Z</dc:date>
    </item>
  </channel>
</rss>

