<?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: Model Builder and File Names ? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381701#M13020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;make sure that you have set the geoprocessing options to overwrite existing outputs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Overwriting tool output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Overwrite the outputs of geoprocessing operations check box controls whether tools automatically overwrite any existing output when run. When it is checked, you receive a warning before tool execution that the output exists, but the tool executes and overwrites the output dataset. With this option off, existing outputs are not overwritten, and the tool displays an error, preventing you from executing the tool."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jan 2011 17:59:55 GMT</pubDate>
    <dc:creator>FrankVignati</dc:creator>
    <dc:date>2011-01-25T17:59:55Z</dc:date>
    <item>
      <title>Model Builder and File Names ?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381700#M13019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a model that use to work but recently crashed during "Extract by Attributes" function.&amp;nbsp; It produced the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error 010302 (Unable to create output raster) and Error 010067 (Error in executing grid)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the ArcMap Help and it states that I either don't have write permissions to the folder I am storing the rasters in or I lack sufficient memory.&amp;nbsp; I double checked and I have tons of memory and I have write permissions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the parameters of the model and everything is fine. When I run the same process outside of model builder it works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I change the output file name of the raster the function works within Model Builder. However, if I delete the original raster output and try to use the original name again the function crashes.&amp;nbsp; It seems to be hung up on the file name that was used for the output at the time of the crash. If I try to use it again the function will not work ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached several screen shots to illustrate my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 17:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381700#M13019</guid>
      <dc:creator>JoelKinzie</dc:creator>
      <dc:date>2011-01-25T17:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder and File Names ?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381701#M13020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;make sure that you have set the geoprocessing options to overwrite existing outputs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Overwriting tool output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Overwrite the outputs of geoprocessing operations check box controls whether tools automatically overwrite any existing output when run. When it is checked, you receive a warning before tool execution that the output exists, but the tool executes and overwrites the output dataset. With this option off, existing outputs are not overwritten, and the tool displays an error, preventing you from executing the tool."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 17:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381701#M13020</guid>
      <dc:creator>FrankVignati</dc:creator>
      <dc:date>2011-01-25T17:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder and File Names ?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381702#M13021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've had similar troubles with ModelBuilder not overwriting past files. I have the "Overwrite the outputs of geoprocessing operations" box checked, but regardless, it just adds a "_1" to the end of newly created files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another way to prompt ModelBuilder to overwrite outputs?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 17:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381702#M13021</guid>
      <dc:creator>JonathanCusick</dc:creator>
      <dc:date>2013-06-26T17:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder and File Names ?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381703#M13022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The best way is to write a script tool to test for the presence of an old output, and explicitly delete it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just setting the "Overwrite" environment option is not entirely reliable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Look up "Using If-Then-Else logic for branching" in the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/06/06/modelbuilderifthenelse1/"&gt;http://blogs.esri.com/esri/arcgis/2011/06/06/modelbuilderifthenelse1/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;has some examples of using Calculate Value (which can execute a python test clause)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of writing a script tool from scratch....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if the input is a multi band raster, the output of Extract by Attributes is a GRID Stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GRIDs and GRID Stacks are restricted to 9 character names:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Bob' will work, but not 't1_stream_6'....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 17:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381703#M13022</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2013-06-26T17:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder and File Names ?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381704#M13023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi JoelK, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Were you able to resolve/check if the issue was a output name length? Let me know. Share your input data to the tool if you can. This will help us check the issue more efficiently. Which version of ArcGIS are you using? sp? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 23:10:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381704#M13023</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2013-06-26T23:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder and File Names ?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381705#M13024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mark! I was able to use the minimal python knowledge I have to put together a small script in the calculate value tool to test for the presence of an existing file name. I'm stuck now though because I can't get the delete tool to delete the old file that I want to overwrite. It either deleted the new, incoming version of the file (FCtoCheck) or as it is now, is trying to delete the new output GDB (OutputFGDB). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to use the delete tool to finish up the job or should I try to delete the old files using another python script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 11:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381705#M13024</guid>
      <dc:creator>JonathanCusick</dc:creator>
      <dc:date>2013-06-27T11:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder and File Names ?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381706#M13025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you seem to have the check and delete running in parallel to the new data creation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and then deleting the entire data base anyway.... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to pass the file name to the 'find and delete' sub routine before starting the 'making a new one' routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;making the running of the 'find and delete' sub routine (whatever the outcome) a precondition for &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;starting the run of the 'making a new one' part would help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if arcpy.Exists(dataNameVariable):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(dataNameVariable)
else:
&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-and-file-names/m-p/381706#M13025</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2021-12-11T17:35:43Z</dc:date>
    </item>
  </channel>
</rss>

