ljs5219

ExecuteError: ERROR 999999: Error executing function.

Discussion created by ljs5219 on May 15, 2013
Latest reply on May 19, 2013 by Wayne_Whitley
i got the this error message.
what's wrong to me?



Traceback (most recent call last):
  File "C:/Users/Administrator/Desktop/arcpy/convert", line 36, in <module>
    saveRaster = arcpy.PointToRaster_conversion( filename2, "RASTERVALU", outRaster2, "MOST_FREQUENT", "NONE", cellSize)
  File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 1772, in PointToRaster
    raise e
ExecuteError: ERROR 999999: Error executing function.
Failed to execute (PointToRaster).




# 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:
    print "Processing: {0}".format(filename2)
    outRaster2 = os.path.join(OutputFolder2, filename2 + "_4x")
    valField = "RASTERVALU"
    assignmentType = "MOST_FREQUENT"
    priorityField = "NONE"
    cellSize = "0.035714286"

# Execute ExtractValuesToPoints
    saveRaster = arcpy.PointToRaster_conversion( filename2, valField, outRaster2, assignmentType, priorityField, cellSize)

print "done "
print arcpy.GetMessages()

Outcomes