<?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: Workspace or data source is read only in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/workspace-or-data-source-is-read-only/m-p/252728#M19467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is definitely plenty of disk space left.&amp;nbsp; I originally thought it may be due to writing to a network, but (besides being a little faster), writing to the local machine produces the same error eventually.&amp;nbsp; I did think of a workaround last night that may get by this, though not fix the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, just wrap each the problem raster processes in some sort of try/expect loop that detects if an exception was thrown and tries the process again.&amp;nbsp; A very hacky workaround, but may keep the batch from bombing out after 30+ minutes of processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 14:56:37 GMT</pubDate>
    <dc:creator>MattEiben</dc:creator>
    <dc:date>2014-10-29T14:56:37Z</dc:date>
    <item>
      <title>Workspace or data source is read only</title>
      <link>https://community.esri.com/t5/python-questions/workspace-or-data-source-is-read-only/m-p/252726#M19465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been having a raster processing arcpy problem for a while and am hoping the Python community may have some insight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is part of a much larger and fairly complex script that is set up in a batch fashion.&amp;nbsp; The script is designed to run through batches of hundreds of input points.&amp;nbsp; The raster processes the tool is having problems on are usually one of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;arcpy.sa.ExtractByMask&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;arcpy.sa.ExtractValuesToPoints&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;arcpy.sa.Int&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;arcpy.sa.Combine&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/25620_Capture.PNG" style="width: 620px; height: 236px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is definitely not with the tool, as the error can happen on batch process 10 up to well over process 100, but this error inevitably comes up.&amp;nbsp; From the error, is almost looks like ArcMap is writing some sort of temporary files to the local GDB before its saves the product to it's final location, but somehow locks itself out of its own process.&amp;nbsp; Based on my experience so far, this seems to be a ESRI arcpy bug, but I was hoping maybe someone in the community has had and/or solved this problem before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any insight!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 23:09:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workspace-or-data-source-is-read-only/m-p/252726#M19465</guid>
      <dc:creator>MattEiben</dc:creator>
      <dc:date>2014-10-28T23:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Workspace or data source is read only</title>
      <link>https://community.esri.com/t5/python-questions/workspace-or-data-source-is-read-only/m-p/252727#M19466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you're not running out of disk space?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For best results when doing raster processing, you should set these two environments to a writeable folder with lots of available space, to make sure there is plenty of room for temporary files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.workspace&lt;/P&gt;&lt;P&gt;arcpy.env.scratchWorkspace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 06:48:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workspace-or-data-source-is-read-only/m-p/252727#M19466</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-10-29T06:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Workspace or data source is read only</title>
      <link>https://community.esri.com/t5/python-questions/workspace-or-data-source-is-read-only/m-p/252728#M19467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is definitely plenty of disk space left.&amp;nbsp; I originally thought it may be due to writing to a network, but (besides being a little faster), writing to the local machine produces the same error eventually.&amp;nbsp; I did think of a workaround last night that may get by this, though not fix the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, just wrap each the problem raster processes in some sort of try/expect loop that detects if an exception was thrown and tries the process again.&amp;nbsp; A very hacky workaround, but may keep the batch from bombing out after 30+ minutes of processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 14:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workspace-or-data-source-is-read-only/m-p/252728#M19467</guid>
      <dc:creator>MattEiben</dc:creator>
      <dc:date>2014-10-29T14:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Workspace or data source is read only</title>
      <link>https://community.esri.com/t5/python-questions/workspace-or-data-source-is-read-only/m-p/252729#M19468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try saving it to a local drive that you have confirmed you have write permissions to.&amp;nbsp; Also ensure the path has no spaces or other unsavory characters.&amp;nbsp; Sometimes when stuff gets copied fro dvds network drives, write permissions are set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 15:14:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workspace-or-data-source-is-read-only/m-p/252729#M19468</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-29T15:14:14Z</dc:date>
    </item>
  </channel>
</rss>

