<?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: arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/suppo in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093893#M62204</link>
    <description>&lt;LI-CODE lang="python"&gt;# here you specify D:\outputData as workspace (a folder)
arcpy.env.workspace = "D:\\outputData"

# this only works with Enterprise geodatabase connections. if you don't have any of those, you don't need this
arcpy.ClearWorkspaceCache_management()
 
# does the raster have a file extension?
inputData = "D:\\quad_dem10"

# here you specify D:\outputData as a raster. but it is a folder...
outputData ="D:\\outputData"


# things to check:
#    is D:\outputData a folder?
#        if yes, change your Clip output to D:\outputData\outputRasterName
#        if no, delete the arcpy.env line (you can probably do that anyway)
#    open the tool (Data Management Tools -&amp;gt; Raster -&amp;gt; Raster Processing -&amp;gt; Clip), put in the parameters from your script and try running it manually&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 31 Aug 2021 06:07:23 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2021-08-31T06:07:23Z</dc:date>
    <item>
      <title>arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support)</title>
      <link>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093890#M62203</link>
      <description>&lt;P&gt;I want to use ArcPy to clip a raster. This is a very brief script, but an error appears and I can't find the reason.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The script:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; arcpy
&amp;nbsp;
arcpy.&lt;SPAN&gt;env&lt;/SPAN&gt;.&lt;SPAN&gt;overwriteOutput&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;
arcpy.&lt;SPAN&gt;env&lt;/SPAN&gt;.&lt;SPAN&gt;workspace&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"D:\\outputData"&lt;/SPAN&gt;
arcpy.&lt;SPAN&gt;ClearWorkspaceCache_management&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&amp;nbsp;
&lt;SPAN&gt;# Specify the input raster&lt;/SPAN&gt;
&lt;SPAN&gt;#myData = input("Please specify the input raster")&lt;/SPAN&gt;
inputData &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"D:\\quad_dem10"&lt;/SPAN&gt;
&amp;nbsp;
&lt;SPAN&gt;# Create an object named rasData. A property of the object is exent&lt;/SPAN&gt;
rasData &lt;SPAN&gt;=&lt;/SPAN&gt; arcpy.&lt;SPAN&gt;Describe&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;inputData&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;rasData.&lt;SPAN&gt;extent&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&amp;nbsp;
&lt;SPAN&gt;# the cookie cutter is hard coded in. This is a simple approach.&lt;/SPAN&gt;
cookieCutter &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"398720 4428155 404145 4435160"&lt;/SPAN&gt;
&amp;nbsp;
&lt;SPAN&gt;# Name the output raster's name&lt;/SPAN&gt;
outputData &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"D:\\outputData"&lt;/SPAN&gt;
arcpy.&lt;SPAN&gt;Clip_management&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;inputData&lt;SPAN&gt;,&lt;/SPAN&gt;cookieCutter&lt;SPAN&gt;,&lt;/SPAN&gt;outputData&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 18832, in Clip&lt;BR /&gt;raise e&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 18829, in Clip&lt;BR /&gt;retval = convertArcObjectToPythonObject(gp.Clip_management(*gp_fixargs((in_raster, rectangle, out_raster, in_template_dataset, nodata_value, clipping_geometry, maintain_clipping_extent), True)))&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank" rel="noopener"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;BR /&gt;Failed to execute (Clip).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 04:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093890#M62203</guid>
      <dc:creator>Anzhzhi</dc:creator>
      <dc:date>2021-08-31T04:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/suppo</title>
      <link>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093893#M62204</link>
      <description>&lt;LI-CODE lang="python"&gt;# here you specify D:\outputData as workspace (a folder)
arcpy.env.workspace = "D:\\outputData"

# this only works with Enterprise geodatabase connections. if you don't have any of those, you don't need this
arcpy.ClearWorkspaceCache_management()
 
# does the raster have a file extension?
inputData = "D:\\quad_dem10"

# here you specify D:\outputData as a raster. but it is a folder...
outputData ="D:\\outputData"


# things to check:
#    is D:\outputData a folder?
#        if yes, change your Clip output to D:\outputData\outputRasterName
#        if no, delete the arcpy.env line (you can probably do that anyway)
#    open the tool (Data Management Tools -&amp;gt; Raster -&amp;gt; Raster Processing -&amp;gt; Clip), put in the parameters from your script and try running it manually&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 Aug 2021 06:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093893#M62204</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-08-31T06:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/suppo</title>
      <link>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093918#M62205</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/clip.htm" target="_blank"&gt;Clip Raster (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is definitely not a good idea to use a raster that contains only numbers and spaces.&lt;/P&gt;&lt;P&gt;If the cookieCutter is a featureclass, you should use Clip from the Analysis toolset&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/clip.htm" target="_blank"&gt;Clip (Analysis)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;*.tif files are the preferred raster format for raster work, you might want to give a try using *.tif files.&lt;/P&gt;&lt;P&gt;Lastly, did you try to clip the raster manually?&amp;nbsp; If so, did it succeed?&amp;nbsp; You need to establish valid input/output file types before embarking on scripting your processes.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 08:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093918#M62205</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-08-31T08:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/suppo</title>
      <link>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093966#M62206</link>
      <description>&lt;P&gt;It's done! Thanks a lot for your help&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 12:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093966#M62206</guid>
      <dc:creator>Anzhzhi</dc:creator>
      <dc:date>2021-08-31T12:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/suppo</title>
      <link>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093968#M62207</link>
      <description>&lt;P&gt;Thank you for the help~&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 12:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1093968#M62207</guid>
      <dc:creator>Anzhzhi</dc:creator>
      <dc:date>2021-08-31T12:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/suppo</title>
      <link>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1297869#M67921</link>
      <description>&lt;P&gt;i face the error mesage which say something unexpected caused the tool to fail contact esri technical&amp;nbsp; support&amp;nbsp; and this error was occured when im trying to enable network topology&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 09:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgisscripting-executeerror-error-999999/m-p/1297869#M67921</guid>
      <dc:creator>Boniface2023</dc:creator>
      <dc:date>2023-06-11T09:35:22Z</dc:date>
    </item>
  </channel>
</rss>

