<?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: ExecuteError: ERROR 999999: Error executing function. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631809#M49209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;why is your cellsize in quotes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;i got the this error message.&lt;BR /&gt;what's wrong to me?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "C:/Users/Administrator/Desktop/arcpy/convert", line 36, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; saveRaster = arcpy.PointToRaster_conversion( filename2, "RASTERVALU", outRaster2, "MOST_FREQUENT", "NONE", cellSize)&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 1772, in PointToRaster&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;BR /&gt;ExecuteError: ERROR 999999: Error executing function.&lt;BR /&gt;Failed to execute (PointToRaster).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# Import arcpy module
import arcpy, os
from arcpy import env
from arcpy.sa import *



# Set environment settings
arcpy.env.workspace = "C:/py2/extract"
arcpy.env.overwriteOutput = True

OutputFolder2 = "C:/py2/result"

# Loop through a list of files in the workspace
RasterFiles2 = arcpy.ListFeatureClasses()

print "POINT TO RASTER"
print RasterFiles2
print " "



# Set local variables
for filename2 in RasterFiles2:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Processing: {0}".format(filename2)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outRaster2 = os.path.join(OutputFolder2, filename2 + "_4x")
&amp;nbsp;&amp;nbsp;&amp;nbsp; valField = "RASTERVALU"
&amp;nbsp;&amp;nbsp;&amp;nbsp; assignmentType = "MOST_FREQUENT"
&amp;nbsp;&amp;nbsp;&amp;nbsp; priorityField = "NONE"
&amp;nbsp;&amp;nbsp;&amp;nbsp; cellSize = "0.035714286"

# Execute ExtractValuesToPoints
&amp;nbsp;&amp;nbsp;&amp;nbsp; saveRaster = arcpy.PointToRaster_conversion( filename2, valField, outRaster2, assignmentType, priorityField, cellSize)

print "done "
print arcpy.GetMessages()
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:53:15 GMT</pubDate>
    <dc:creator>ChrisPedrezuela</dc:creator>
    <dc:date>2021-12-12T02:53:15Z</dc:date>
    <item>
      <title>ExecuteError: ERROR 999999: Error executing function.</title>
      <link>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631808#M49208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i got the this error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what's wrong to me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:/Users/Administrator/Desktop/arcpy/convert", line 36, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; saveRaster = arcpy.PointToRaster_conversion( filename2, "RASTERVALU", outRaster2, "MOST_FREQUENT", "NONE", cellSize)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 1772, in PointToRaster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (PointToRaster).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
# Import arcpy module
import arcpy, os
from arcpy import env
from arcpy.sa import *



# Set environment settings
arcpy.env.workspace = "C:/py2/extract"
arcpy.env.overwriteOutput = True

OutputFolder2 = "C:/py2/result"

# Loop through a list of files in the workspace
RasterFiles2 = arcpy.ListFeatureClasses()

print "POINT TO RASTER"
print RasterFiles2
print " "



# Set local variables
for filename2 in RasterFiles2:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Processing: {0}".format(filename2)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outRaster2 = os.path.join(OutputFolder2, filename2 + "_4x")
&amp;nbsp;&amp;nbsp;&amp;nbsp; valField = "RASTERVALU"
&amp;nbsp;&amp;nbsp;&amp;nbsp; assignmentType = "MOST_FREQUENT"
&amp;nbsp;&amp;nbsp;&amp;nbsp; priorityField = "NONE"
&amp;nbsp;&amp;nbsp;&amp;nbsp; cellSize = "0.035714286"

# Execute ExtractValuesToPoints
&amp;nbsp;&amp;nbsp;&amp;nbsp; saveRaster = arcpy.PointToRaster_conversion( filename2, valField, outRaster2, assignmentType, priorityField, cellSize)

print "done "
print arcpy.GetMessages()
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 23:57:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631808#M49208</guid>
      <dc:creator>LEEjongseok</dc:creator>
      <dc:date>2013-05-15T23:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteError: ERROR 999999: Error executing function.</title>
      <link>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631810#M49210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;why is your cellsize in quotes?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My projection is GCS, so my cell size is quotes.. ^^&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 04:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631810#M49210</guid>
      <dc:creator>LEEjongseok</dc:creator>
      <dc:date>2013-05-16T04:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteError: ERROR 999999: Error executing function.</title>
      <link>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631812#M49212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh, now I think I see the problem, although you may have more than one problem - I'll tell you what I think is the most likely candidate 1st.&amp;nbsp; Is it true that you are listing point shapefiles for the input in the loop (even if it is just one iteration)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing is, if a shp, the file has of course a .shp extension - you're feeding this into the output name.&amp;nbsp; Your output location was specified as "C:/py2/result" and to that you're joining the input filename which is going to balk at the .shp extension...so if you strip that off, I think you may be okay --- you can do that something like the following, replacing your outRaster2 variable line in the loop:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;outRaster2 = os.path.join(OutputFolder2, os.path.splitext(filename2)[0])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(that's GRID raster format; for jpg, etc, add the necessary supported file format extension, as in):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;outRaster2 = os.path.join(OutputFolder2, os.path.splitext(filename2)[0] + '.jpg')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry didn't see that sooner!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Two other things I question is the 'NONE' parameter value, maybe should be an empty string '', and I agree with the cell size as suggested before this post - should probably be numeric.&amp;nbsp; If you run into further problems, maybe you should try leaving off some of these optional parameters to make sure it runs in minimal (or default) fashion at 1st.&amp;nbsp; Then continue testing adding in your 'fine tuning' params to get just the output you desire.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 02:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631812#M49212</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-05-20T02:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteError: ERROR 999999: Error executing function.</title>
      <link>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631809#M49209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;why is your cellsize in quotes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;i got the this error message.&lt;BR /&gt;what's wrong to me?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "C:/Users/Administrator/Desktop/arcpy/convert", line 36, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; saveRaster = arcpy.PointToRaster_conversion( filename2, "RASTERVALU", outRaster2, "MOST_FREQUENT", "NONE", cellSize)&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 1772, in PointToRaster&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;BR /&gt;ExecuteError: ERROR 999999: Error executing function.&lt;BR /&gt;Failed to execute (PointToRaster).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# Import arcpy module
import arcpy, os
from arcpy import env
from arcpy.sa import *



# Set environment settings
arcpy.env.workspace = "C:/py2/extract"
arcpy.env.overwriteOutput = True

OutputFolder2 = "C:/py2/result"

# Loop through a list of files in the workspace
RasterFiles2 = arcpy.ListFeatureClasses()

print "POINT TO RASTER"
print RasterFiles2
print " "



# Set local variables
for filename2 in RasterFiles2:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Processing: {0}".format(filename2)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outRaster2 = os.path.join(OutputFolder2, filename2 + "_4x")
&amp;nbsp;&amp;nbsp;&amp;nbsp; valField = "RASTERVALU"
&amp;nbsp;&amp;nbsp;&amp;nbsp; assignmentType = "MOST_FREQUENT"
&amp;nbsp;&amp;nbsp;&amp;nbsp; priorityField = "NONE"
&amp;nbsp;&amp;nbsp;&amp;nbsp; cellSize = "0.035714286"

# Execute ExtractValuesToPoints
&amp;nbsp;&amp;nbsp;&amp;nbsp; saveRaster = arcpy.PointToRaster_conversion( filename2, valField, outRaster2, assignmentType, priorityField, cellSize)

print "done "
print arcpy.GetMessages()
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631809#M49209</guid>
      <dc:creator>ChrisPedrezuela</dc:creator>
      <dc:date>2021-12-12T02:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteError: ERROR 999999: Error executing function.</title>
      <link>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631811#M49211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it is my attribut table in the shape file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24355[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and, new code is here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
###########Point to Raster
# Import arcpy module
import arcpy, os
from arcpy import env
from arcpy.sa import *



# Set environment settings
arcpy.env.workspace = "C:/py2/extract"
arcpy.env.overwriteOutput = True

OutputFolder2 = "C:/py2/result"

# Loop through a list of files in the workspace
RasterFiles2 = arcpy.ListFeatureClasses()

print "POINT TO RASTER"
print RasterFiles2
print " "



# Set local variables
for filename2 in RasterFiles2:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Processing: {0}".format(filename2)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outRaster2 = os.path.join(OutputFolder2, filename2)
&amp;nbsp;&amp;nbsp;&amp;nbsp; value = "RASTERVALU"
&amp;nbsp;&amp;nbsp;&amp;nbsp; assignmentType = "MOST_FREQUENT"
&amp;nbsp;&amp;nbsp;&amp;nbsp; priorityField = "NONE"
&amp;nbsp;&amp;nbsp;&amp;nbsp; cellSize = "0.035714286"
# Execute ExtractValuesToPoints
&amp;nbsp;&amp;nbsp;&amp;nbsp; saveRaster = arcpy.PointToRaster_conversion( filename2, value, outRaster2, assignmentType, priorityField, cellSize)

print " "
print ":o) End Processing :)"
print arcpy.GetMessages()


&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but i got it,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Traceback (most recent call last):
&amp;nbsp; File "C:\Users\Administrator\Desktop\arcpy\convert", line 33, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; saveRaster = arcpy.PointToRaster_conversion( filename2, value, outRaster2, assignmentType, priorityField, cellSize)
&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 1772, in PointToRaster
&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000840: The value is not a Raster Dataset.
ERROR 000840: The value is not a Raster Catalog.
Failed to execute (PointToRaster).

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;help me...TT&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/executeerror-error-999999-error-executing-function/m-p/631811#M49211</guid>
      <dc:creator>LEEjongseok</dc:creator>
      <dc:date>2021-12-12T02:53:18Z</dc:date>
    </item>
  </channel>
</rss>

