<?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: File geodatabase, freelist file locks in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647007#M36603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce. I'm seeing the exact same behavior as you reported. I have an application that exports data to a file geodatabase and then zips it up to make the database downloadable. The process replicates functionality from a desktop version of the application, so I can verify that the exact same code that works in desktop fails in server because a .freelist file is being held open in server (I suspect by an ArcSOC.exe service).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you had any success in solving this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2015 13:49:14 GMT</pubDate>
    <dc:creator>BrianLott</dc:creator>
    <dc:date>2015-05-15T13:49:14Z</dc:date>
    <item>
      <title>File geodatabase, freelist file locks</title>
      <link>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647002#M36598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a process that routinely exports datasets from Oracle SDE (copy_management) to a file geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;During this process the geoprocessing environment is set to overwrite outputs of geoprocessing operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When a dataset within a file geodatabase is set to be updated through the copy_management tool sometimes the script errors &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the error message reports it is because the dataset is being accessed by another application; I am positive&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this isn't the case.&amp;nbsp; I think the error is because of how the "freelist" file is created in the file geodatabase.&amp;nbsp; This &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error seems to occur only when the SDE dataset being copied out is part of an ArcGIS Server service.&amp;nbsp; I think &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this blocks the deletion of an existing dataset while executing the copy_management tool that should overwrite&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it.&amp;nbsp; I am able to overwrite a dataset successfully within a file geodatabase by using the copy_management when&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the SDE dataset is not part of an ArcGIS Server service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than simply deleting the freelist files (a risky thing to do, but it works because I tested it) prior to executing copy_management, how may I erase/clear the "freelist" files, or is there another solution?&amp;nbsp; Dropping the ArcGIS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server service or rebooting the server is not an option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bruce&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647002#M36598</guid>
      <dc:creator>BruceCarroll</dc:creator>
      <dc:date>2013-06-25T12:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase, freelist file locks</title>
      <link>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647003#M36599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The existence of a freelist will not block anything. Are there any .lock files present? If server is running there should be.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647003#M36599</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2013-06-25T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase, freelist file locks</title>
      <link>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647004#M36600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think the existence of .FREELIST files has anything to do with your problem.&amp;nbsp; However, the way to get rid of .FREELIST files is to run the Database Compact command.&amp;nbsp; It would be a bad idea to simply delete them, as you will never be able to recover the unused space in your datafiles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are getting an error message that another process is accessing your dataset, that can be considered to be a reliable message.&amp;nbsp; Why are you so sure that no other process is active?&amp;nbsp; The way to know for sure is to go into the database folder and look at any .LOCK files that are present.&amp;nbsp; In the lock file names, you can see the name of the locked dataset, the type of lock, and the process and thread ID which owns the lock.&amp;nbsp; You will probably find that some other process does in fact have the dataset open.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 15:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647004#M36600</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2013-06-25T15:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase, freelist file locks</title>
      <link>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647005#M36601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a similar problem where timestamps and other files won't delete when I try to delete and replace a file geodatabase.&amp;nbsp; I have to copy and paste data from one geodatabase to another in Windows Explorer.&amp;nbsp; This didn't happen before it was part of ArcGIS Server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647005#M36601</guid>
      <dc:creator>TomMagdaleno</dc:creator>
      <dc:date>2013-06-26T14:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase, freelist file locks</title>
      <link>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647006#M36602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using Windows Explorer to copy your data while it is in use by another process is very risky.&amp;nbsp; There is a very good chance that you will end up corrupting your data in some way.&amp;nbsp; The problem is that any files that are open might not be copied as expected and you will end up with files missing in the new folder.&amp;nbsp; It used to be the case that Windows Explorer would give you an error message that there was a sharing violation and the copy would stop.&amp;nbsp; But that behavior was changed in Vista and Windows 7.&amp;nbsp; Now, it quietly copies the files it can, and skips the files that cannot be copied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you have good backups!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is also extremely risky to go into the database folder and delete files that are there.&amp;nbsp; Please make backups first!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 16:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647006#M36602</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2013-06-26T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase, freelist file locks</title>
      <link>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647007#M36603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce. I'm seeing the exact same behavior as you reported. I have an application that exports data to a file geodatabase and then zips it up to make the database downloadable. The process replicates functionality from a desktop version of the application, so I can verify that the exact same code that works in desktop fails in server because a .freelist file is being held open in server (I suspect by an ArcSOC.exe service).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you had any success in solving this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 13:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647007#M36603</guid>
      <dc:creator>BrianLott</dc:creator>
      <dc:date>2015-05-15T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: File geodatabase, freelist file locks</title>
      <link>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647008#M36604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To bypass the locks that are placed on the file geodatabase by ArcGIS Server you should use a DeleteFeatures_management call followed by an Append_management call.&amp;nbsp; The Copy_management tool copies the schema which is locked, but the schema is not touched when using DeleteFeatures_management followed by Append_management.&amp;nbsp; I ran across this issue years ago and have used Delete and Append for years without any issues with file gdb locks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 14:09:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/file-geodatabase-freelist-file-locks/m-p/647008#M36604</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-05-15T14:09:56Z</dc:date>
    </item>
  </channel>
</rss>

