<?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 cannot get exclusive schema lock in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/cannot-get-exclusive-schema-lock/m-p/596748#M19763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have written a script where I set the value in a cell. Unfortunately, I am getting an error that says '&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cannot get exclusive schema lock. Either being edited or in use by another application.' However, all that is open is the ArcMap session that I am trying to run the tool from.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Sep 2010 17:49:24 GMT</pubDate>
    <dc:creator>deleted-user-rQoEFM5qzbHE</dc:creator>
    <dc:date>2010-09-28T17:49:24Z</dc:date>
    <item>
      <title>cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cannot-get-exclusive-schema-lock/m-p/596748#M19763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have written a script where I set the value in a cell. Unfortunately, I am getting an error that says '&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cannot get exclusive schema lock. Either being edited or in use by another application.' However, all that is open is the ArcMap session that I am trying to run the tool from.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 17:49:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cannot-get-exclusive-schema-lock/m-p/596748#M19763</guid>
      <dc:creator>deleted-user-rQoEFM5qzbHE</dc:creator>
      <dc:date>2010-09-28T17:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cannot-get-exclusive-schema-lock/m-p/596749#M19764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By "cell" do you mean a field value in a table or a raster pixel?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's the former, and you are using a cursor in your script, be sure to delete the reference to the cursor object. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;updateRows = gp.updatecursor(occBuffersUnionFC)
updateRow = updateRows.next()
while updateRow:
&amp;nbsp;&amp;nbsp;&amp;nbsp; if updateRow.FID_occ_buff_1320ft &amp;gt; -1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRow.OCCBUFF_TY = "Quarter Mile"
&amp;nbsp;&amp;nbsp;&amp;nbsp; if updateRow.FID_occ_buff_100m &amp;gt; -1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRow.OCCBUFF_TY = "100 Meter"
&amp;nbsp;&amp;nbsp;&amp;nbsp; if updateRow.FID_occ_buff_300ft &amp;gt; -1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRow.OCCBUFF_TY = "300 Feet"
&amp;nbsp;&amp;nbsp;&amp;nbsp; if updateRow.FID_occ_buff_165ft &amp;gt; -1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRow.OCCBUFF_TY = "165 Feet"&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if updateRow.FID_mm_policy &amp;gt; -1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRow.OCCBUFF_TY = "Occupied Site"
&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRows.updaterow(updateRow)
&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRow = updateRows.next()
del updateRow
del updateRows&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cannot-get-exclusive-schema-lock/m-p/596749#M19764</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-12T01:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/cannot-get-exclusive-schema-lock/m-p/596750#M19765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is a field value in a table. I wasn't even able to change the name of the folder, there must have been some sort of lock on it even after I closed all ArcMap instances. I had to reboot my computer and it has been working fine since. Thanks for the tip on the 'del' statements, they have been added to the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 11:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/cannot-get-exclusive-schema-lock/m-p/596750#M19765</guid>
      <dc:creator>deleted-user-rQoEFM5qzbHE</dc:creator>
      <dc:date>2010-09-29T11:31:56Z</dc:date>
    </item>
  </channel>
</rss>

