<?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 RuntimeError: cannot open workspace in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383021#M30166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Purpose:&lt;/STRONG&gt; Edit a versioned feature class within a Feature dataset in order to calculate a field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called Date to store the date of the inspection (data type: date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another field called Time_Diff (data type: Long). This field is the one that will be used to calculate the time difference between system date and the date recorded in the Date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script keeps failing due to the following runtime error: RuntimeError: cannot open workspace&lt;/P&gt;&lt;P&gt;Any assistance will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;# Import arcpy module
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;import &lt;/SPAN&gt;arcpy


&lt;SPAN style="color: #808080;"&gt;# Local variables:
&lt;/SPAN&gt;Input_MapChangeRequest = &lt;SPAN style="color: #a5c261;"&gt;"Database Connections&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;GISHW.sde&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;gishw.PU.HW_FieldCollection&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;gishw.PU.MapChangeRequest"
&lt;/SPAN&gt;MapChangeRequest_Layer = &lt;SPAN style="color: #a5c261;"&gt;"MapChangeRequest_Layer"
&lt;/SPAN&gt;MapChangeRequest_layer2 = MapChangeRequest_Layer
MapChangeRequest_Layer__3_ = MapChangeRequest_layer2

&lt;SPAN style="color: #808080;"&gt;# Process: Make Feature Layer
&lt;/SPAN&gt;arcpy.MakeFeatureLayer_management(Input_MapChangeRequest&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;MapChangeRequest_Layer&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"OBJECTID OBJECTID VISIBLE NONE;UTILITY UTILITY VISIBLE NONE;ISSUE ISSUE VISIBLE NONE;ASSET ASSET VISIBLE NONE;CRITICAL CRITICAL VISIBLE NONE;NOTES NOTES VISIBLE NONE;STATUS STATUS VISIBLE NONE;REPORTER REPORTER VISIBLE NONE;DATE DATE VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;created_user created_user VISIBLE NONE;created_date created_date VISIBLE NONE;last_edited_user last_edited_user VISIBLE NONE;last_edited_date last_edited_date VISIBLE NONE;GlobalID GlobalID VISIBLE NONE;Time_Diff Time_Diff VISIBLE NONE"&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Process: Change Version
&lt;/SPAN&gt;arcpy.ChangeVersion_management(MapChangeRequest_Layer&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"TRANSACTIONAL"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"ARCGIS_SERVER.PU_web_editing"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Start an edit session. Must provide the workspace.
&lt;/SPAN&gt;edit = arcpy.da.Editor(MapChangeRequest_Layer)

&lt;SPAN style="color: #808080;"&gt;# Edit session is started without an undo/redo stack for versioned data
&lt;/SPAN&gt;edit.startEditing(&lt;SPAN style="color: #8888c6;"&gt;True&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Start an edit operation
&lt;/SPAN&gt;edit.startOperation()

&lt;SPAN style="color: #808080;"&gt;# Process: Calculate Field
&lt;/SPAN&gt;arcpy.CalculateField_management(MapChangeRequest_layer2&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"Time_Diff"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"(datetime.datetime.now() - arcpy.time.ParseDateTimeString( !DATE! )).days"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"PYTHON_9.3"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Stop the edit operation.
&lt;/SPAN&gt;edit.stopOperation()

&lt;SPAN style="color: #808080;"&gt;# Stop the edit session and save the changes
&lt;/SPAN&gt;edit.stopEditing(&lt;SPAN style="color: #8888c6;"&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:38:11 GMT</pubDate>
    <dc:creator>ErnestoCarreras3</dc:creator>
    <dc:date>2021-12-11T17:38:11Z</dc:date>
    <item>
      <title>RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383021#M30166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Purpose:&lt;/STRONG&gt; Edit a versioned feature class within a Feature dataset in order to calculate a field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called Date to store the date of the inspection (data type: date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another field called Time_Diff (data type: Long). This field is the one that will be used to calculate the time difference between system date and the date recorded in the Date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script keeps failing due to the following runtime error: RuntimeError: cannot open workspace&lt;/P&gt;&lt;P&gt;Any assistance will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;# Import arcpy module
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;import &lt;/SPAN&gt;arcpy


&lt;SPAN style="color: #808080;"&gt;# Local variables:
&lt;/SPAN&gt;Input_MapChangeRequest = &lt;SPAN style="color: #a5c261;"&gt;"Database Connections&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;GISHW.sde&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;gishw.PU.HW_FieldCollection&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;gishw.PU.MapChangeRequest"
&lt;/SPAN&gt;MapChangeRequest_Layer = &lt;SPAN style="color: #a5c261;"&gt;"MapChangeRequest_Layer"
&lt;/SPAN&gt;MapChangeRequest_layer2 = MapChangeRequest_Layer
MapChangeRequest_Layer__3_ = MapChangeRequest_layer2

&lt;SPAN style="color: #808080;"&gt;# Process: Make Feature Layer
&lt;/SPAN&gt;arcpy.MakeFeatureLayer_management(Input_MapChangeRequest&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;MapChangeRequest_Layer&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"OBJECTID OBJECTID VISIBLE NONE;UTILITY UTILITY VISIBLE NONE;ISSUE ISSUE VISIBLE NONE;ASSET ASSET VISIBLE NONE;CRITICAL CRITICAL VISIBLE NONE;NOTES NOTES VISIBLE NONE;STATUS STATUS VISIBLE NONE;REPORTER REPORTER VISIBLE NONE;DATE DATE VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;created_user created_user VISIBLE NONE;created_date created_date VISIBLE NONE;last_edited_user last_edited_user VISIBLE NONE;last_edited_date last_edited_date VISIBLE NONE;GlobalID GlobalID VISIBLE NONE;Time_Diff Time_Diff VISIBLE NONE"&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Process: Change Version
&lt;/SPAN&gt;arcpy.ChangeVersion_management(MapChangeRequest_Layer&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"TRANSACTIONAL"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"ARCGIS_SERVER.PU_web_editing"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Start an edit session. Must provide the workspace.
&lt;/SPAN&gt;edit = arcpy.da.Editor(MapChangeRequest_Layer)

&lt;SPAN style="color: #808080;"&gt;# Edit session is started without an undo/redo stack for versioned data
&lt;/SPAN&gt;edit.startEditing(&lt;SPAN style="color: #8888c6;"&gt;True&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Start an edit operation
&lt;/SPAN&gt;edit.startOperation()

&lt;SPAN style="color: #808080;"&gt;# Process: Calculate Field
&lt;/SPAN&gt;arcpy.CalculateField_management(MapChangeRequest_layer2&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"Time_Diff"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"(datetime.datetime.now() - arcpy.time.ParseDateTimeString( !DATE! )).days"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"PYTHON_9.3"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Stop the edit operation.
&lt;/SPAN&gt;edit.stopOperation()

&lt;SPAN style="color: #808080;"&gt;# Stop the edit session and save the changes
&lt;/SPAN&gt;edit.stopEditing(&lt;SPAN style="color: #8888c6;"&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383021#M30166</guid>
      <dc:creator>ErnestoCarreras3</dc:creator>
      <dc:date>2021-12-11T17:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383022#M30167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you missing something in your path? the location of the workspace needs to be explicit in the script from my reading of the help file&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/editor.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/editor.htm"&gt;Editor—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;maybe this &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/env.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/env.htm"&gt;env—Help | ArcGIS for Desktop&lt;/A&gt; needs to be added&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 17:51:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383022#M30167</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-04T17:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383023#M30168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just added the following below Import arcpy and got the same error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #344134;"&gt;arcpy&lt;/SPAN&gt;.env.workspace = &lt;SPAN style="color: #a5c261;"&gt;"Database Connections&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;GISHW.sde&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;gishw.PU.HW_FieldCollection"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 19:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383023#M30168</guid>
      <dc:creator>ErnestoCarreras3</dc:creator>
      <dc:date>2016-04-04T19:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383024#M30169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I work locally, I suspect pure python and arcpy knows nothing about your connection&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-database-connection.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-database-connection.htm"&gt;Create Database Connection—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;so if it has worked in the past, I have no clue... and will defer to those that have to work on networks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 19:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383024#M30169</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-04T19:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383025#M30170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyways, thanks for you input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 19:45:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383025#M30170</guid>
      <dc:creator>ErnestoCarreras3</dc:creator>
      <dc:date>2016-04-04T19:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383026#M30171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have modified the script so that it point to the SDE connection locally for the workspace but still I get the same runtime error... any help will he really appreciated &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;. The SDE connection used in the script points to the version where I need to update the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;# Import arcpy module
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;import &lt;/SPAN&gt;arcpy

conn = &lt;SPAN style="color: #a5c261;"&gt;r"U:\GIS\GISHW.sde"
&lt;/SPAN&gt;arcpy.env.workspace = conn

&lt;SPAN style="color: #808080;"&gt;# Local variables:
&lt;/SPAN&gt;Input_MapChangeRequest = &lt;SPAN style="color: #a5c261;"&gt;r"U:\GIS\GISHW.sde\gishw.PU.HW_FieldCollection\gishw.PU.MapChangeRequest"
&lt;/SPAN&gt;MapChangeRequest_Layer = &lt;SPAN style="color: #a5c261;"&gt;"MapChangeRequest_Layer"
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# Start an edit session. Must provide the workspace.
&lt;/SPAN&gt;edit = arcpy.da.Editor(MapChangeRequest_Layer)

&lt;SPAN style="color: #808080;"&gt;# Edit session is started without an undo/redo stack for versioned data
&lt;/SPAN&gt;edit.startEditing(&lt;SPAN style="color: #8888c6;"&gt;True&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Start an edit operation
&lt;/SPAN&gt;edit.startOperation()

&lt;SPAN style="color: #808080;"&gt;# Process: Calculate Field
&lt;/SPAN&gt;arcpy.CalculateField_management(MapChangeRequest_Layer&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"Time_Diff"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"(datetime.datetime.now() - arcpy.time.ParseDateTimeString( !DATE! )).days"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"PYTHON_9.3"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;""&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;# Stop the edit operation.
&lt;/SPAN&gt;edit.stopOperation()

&lt;SPAN style="color: #808080;"&gt;# Stop the edit session and save the changes
&lt;/SPAN&gt;edit.stopEditing(&lt;SPAN style="color: #8888c6;"&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/8586" target="_blank"&gt;Jake Skinner&lt;/A&gt;​ I noticed you commented on a similar question and thought you may be able to assist me with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383026#M30171</guid>
      <dc:creator>ErnestoCarreras3</dc:creator>
      <dc:date>2021-12-11T17:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383027#M30172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you supply the workspace instead of the name of the layer from the workspace?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit = arcpy.da.Editor(conn) or edit = arcpy.da.Editor(arcpy.env.workspace)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 13:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383027#M30172</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2016-04-06T13:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383028#M30173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It returns the following error even though I have enabled the editing within the script...&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red;"&gt;arcgisscripting.ExecuteError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red;"&gt;Objects in this class cannot be updated outside an edit session [gishw.PU.MapChangeRequest]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red;"&gt;Failed to execute (CalculateField).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 13:28:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383028#M30173</guid>
      <dc:creator>ErnestoCarreras3</dc:creator>
      <dc:date>2016-04-06T13:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383029#M30174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the table you're needing to edit registered as versioned?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383029#M30174</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2016-04-06T14:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383030#M30175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Well, it appears it was not. I assumed it got unversioned after adding a new feature class to the Feature Dataset. Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the script works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383030#M30175</guid>
      <dc:creator>ErnestoCarreras3</dc:creator>
      <dc:date>2016-04-06T14:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: cannot open workspace</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383031#M30176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just as a further point here...&lt;/P&gt;&lt;P&gt;It is unwise to have attribute field names which are the same as keywords.&lt;/P&gt;&lt;P&gt;Here we have a field called DATE which is a date type.&lt;/P&gt;&lt;P&gt;You never know when you will get strange things happening with fields like that.&lt;/P&gt;&lt;P&gt;Rather call it ChangeDate or something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-cannot-open-workspace/m-p/383031#M30176</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-04-06T14:40:14Z</dc:date>
    </item>
  </channel>
</rss>

