<?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: How to release LOCK FILE? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322975#M12354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you deleted all the objects that have been created in the script behind the GP Service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Desktop takes care of this (mostly and usually) behind the scenes. But all objects in memory need explicit removal after use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, &lt;/P&gt;&lt;P&gt;#create mxd in memory&lt;/P&gt;&lt;P&gt;mxd = arcpy.mapping.MapDocument(r'some fmxd')&lt;/P&gt;&lt;P&gt;#todo remove mxd&lt;/P&gt;&lt;P&gt;del mxd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sounds like it is still hanging around in memory and that why it's status is lock. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 22:08:59 GMT</pubDate>
    <dc:creator>SusanJones</dc:creator>
    <dc:date>2014-10-14T22:08:59Z</dc:date>
    <item>
      <title>How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322973#M12352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Recently, we published a GP Services. When running the GP Service on ArcMap, it works fine. However, when running it on Web Server. I got error like the screenshot: "esrijobfailed". We go to read the LOGS in ArcGIS Server Manager. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes, the error is "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ExecuteError: ERROR 000871: Output table: Unable to delete the output&lt;/SPAN&gt;&lt;SPAN&gt;". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes, the error is "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ExecuteError: ERROR 999999: Error executing function. Cannot acquire a lock. Cannot acquire a lock. ERROR 010037: Output table D:\ArcGISData\ArcServerData\TxFIP\tools\ScratchWorkspace\scratch\scratch.gdb\tempUrbanStats could not be created&lt;/SPAN&gt;&lt;SPAN&gt;". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes, it is "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ERROR 999999: Error executing function. The table already exists. No spatial reference exists&lt;/SPAN&gt;&lt;SPAN&gt;". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes, it is "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt; ERROR 000464: Cannot get exclusive schema lock. Either being edited or in use by another application. Failed to execute (Delete)&lt;/SPAN&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides, I check in the gdb folder. There are usually two lock files: _gdb.lock and tempStatsTable.lock. And they are not released after GP Services termination. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also find that after the GP Service firstly executes, we wait several minutes and run the GP again, the GP works on Web server again though two lock files are still in gdb folder. Any thought? Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yang&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:01:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322973#M12352</guid>
      <dc:creator>YangLiu2</dc:creator>
      <dc:date>2014-03-05T20:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322974#M12353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever find a solution to this? I am running into something similar.&lt;/P&gt;&lt;P&gt;Works fine in ArcTools, create the GP Service, go to the web service and it creates a locked file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had thought that &lt;/P&gt;&lt;P&gt;del mxd (name of the mxd used)&lt;/P&gt;&lt;P&gt;del arcpy &lt;/P&gt;&lt;P&gt;would work, but it doesn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 22:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322974#M12353</guid>
      <dc:creator>DorothyMortenson</dc:creator>
      <dc:date>2014-10-14T22:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322975#M12354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you deleted all the objects that have been created in the script behind the GP Service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Desktop takes care of this (mostly and usually) behind the scenes. But all objects in memory need explicit removal after use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, &lt;/P&gt;&lt;P&gt;#create mxd in memory&lt;/P&gt;&lt;P&gt;mxd = arcpy.mapping.MapDocument(r'some fmxd')&lt;/P&gt;&lt;P&gt;#todo remove mxd&lt;/P&gt;&lt;P&gt;del mxd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sounds like it is still hanging around in memory and that why it's status is lock. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 22:08:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322975#M12354</guid>
      <dc:creator>SusanJones</dc:creator>
      <dc:date>2014-10-14T22:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322976#M12355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post your code in the window&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 22:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322976#M12355</guid>
      <dc:creator>SusanJones</dc:creator>
      <dc:date>2014-10-14T22:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322977#M12356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def make_map(wl_id, well_label_text, well_label_nbr, well_label_lat_dd , well_label_long_dd , x_coord , y_coord, trsqq_key , address_of_well ,&amp;nbsp; submitted_by , location_source&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ----------- IMPORTS ----------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import datetime, sys, arcpy, os, shutil, time&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ------------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #===================================================================&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # PATHNAMES AND OTHER VARIABLES&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #===================================================================&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah, blah&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #===================================================================&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # CREATE POINT &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #===================================================================&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spatialRef = arcpy.Describe(dataset).spatialReference&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(temp_well_point):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(temp_well_point)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Old version of well point was deleted."&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ptx = float(x_coord)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pty = float(y_coord)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; well_point = arcpy.Point(ptx, pty)&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointGeometry = arcpy.PointGeometry(well_point, spatialRef)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; logfile.write("\n... Geometry of point is created...\n")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(pointGeometry, temp_well_point)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(temp_well_point, "MAP_LABEL", "TEXT", "", "", 20)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map_label = "\"" + well_label_nbr + "\""&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CalculateField_management(temp_well_point, "MAP_LABEL", map_label,&amp;nbsp;&amp;nbsp; "PYTHON")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #===================================================================&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # CREATE MAP &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #===================================================================&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Delete pre-existing png...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if os.path.exists(well_location_map):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; os.remove(well_location_map) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # .... Change the extent to the selected area ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; df&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = arcpy.mapping.ListDataFrames(well_mxd,"Layers") [0]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newExtent&amp;nbsp;&amp;nbsp;&amp;nbsp; = df.extent&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newExtent.XMin, newExtent.YMin = xmin, ymin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newExtent.XMax, newExtent.YMax = xmax, ymax&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; df.panToExtent(newExtent)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #... Add the Layer and Change the Cartography .....&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wellLayer = arcpy.mapping.Layer(well_layer)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wellLayer.replaceDataSource(workspace_temp, "SHAPEFILE_WORKSPACE", wl_id)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.AddLayer(df, wellLayer, "TOP")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wellLayer.showLabels = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # change the text of the map&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for elm in arcpy.mapping.ListLayoutElements(well_mxd, "TEXT_ELEMENT"):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if elm.text == "latitude_text":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.text = lat_line&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if elm.text == "longitude_text":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.text = long_line&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if elm.text == "trsqq_text":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.text = trsqq_line&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if elm.text == "well_label":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.text = well_label_line&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;&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;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if elm.text == "address_of_well_text":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.text = address_of_well_line &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if elm.text == "source_text":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.text = location_source&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ... refresh the map .....&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.RefreshActiveView()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToPNG(well_mxd, well_location_map)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #===================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # CLEANUP&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #===================================================================&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ended up deleting the temp point to get rid of the locked files.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # in other applications, I may not want to do this.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #---------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(temp_well_point):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(temp_well_point)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; del well_mxd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; del arcpy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 14:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322977#M12356</guid>
      <dc:creator>DorothyMortenson</dc:creator>
      <dc:date>2014-10-15T14:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322978#M12357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See above.&lt;/P&gt;&lt;P&gt;In the cleanup section, I ended up deleting the temp point to get rid of the locked files. But in other cases, I may not want to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 14:42:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322978#M12357</guid>
      <dc:creator>DorothyMortenson</dc:creator>
      <dc:date>2014-10-15T14:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322979#M12358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dorothy &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geoprocessing Services have changed a bit since the ArcGIS Server 10.1 release. Your code works fine at the Desktop Tool level but when applied to ArcGIS Server is does not know where to find the output result datasets it has generated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code will need to be modified to use the ScratchFolder, ScratchGDB and the ScratchWorkspace&amp;nbsp; arcpy variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Server goes through and validates the code when the tool is published as a service. A new task is created each time the GP Service is called and a new (temporary) sets of Scratch Workspaces are created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get any warning messages when you published the tool? It will normally tell you it couldn't figure out the path to the data because it is not know to ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001w00000047000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//001w00000047000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//001w00000047000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 19:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322979#M12358</guid>
      <dc:creator>SusanJones</dc:creator>
      <dc:date>2014-10-15T19:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322980#M12359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That may help me with another issue I have.&lt;/P&gt;&lt;P&gt;But I still don't understand why it locks the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 20:14:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322980#M12359</guid>
      <dc:creator>DorothyMortenson</dc:creator>
      <dc:date>2014-10-15T20:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322981#M12360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No there were not errors, warnings or messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 20:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322981#M12360</guid>
      <dc:creator>DorothyMortenson</dc:creator>
      <dc:date>2014-10-15T20:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to release LOCK FILE?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322982#M12361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it has locked the file because it didn't get cast as the result. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 21:00:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-release-lock-file/m-p/322982#M12361</guid>
      <dc:creator>SusanJones</dc:creator>
      <dc:date>2014-10-15T21:00:11Z</dc:date>
    </item>
  </channel>
</rss>

