Select to view content in your preferred language

Spatial Analyst Extention and Syntax Errors

3793
1
09-19-2011 07:32 PM
StephanieShaw
Emerging Contributor
I have download the service pack two.  I have activated the extension and I have correctly entered my geoprocessing environment.  I have used some of the tools in ArcGIS 10 desktop successfully but this was my first time using the spatial analyst tools in ArcGIS 10.  I was trying to create a hillshade and slope from a dem but it failed with both.  The dem is in a geodatabase and I set the geodatabase as my workspace and tried to create the hillshade, in the geodatabase (failed).  I then tried to create the hilshade in a folder, outside of the geodatabase (failed).  I then tried a new name for the hillshade, rather than the default (failed).  I tried re-downloading the dem, in case it was a corrupt file and then creating a hillshade (failed).  I tried removing the dem from the geodatabase and putting it in a folder then creating a hilshade in the the folder (failed).  I think this is a spatial analyst tool extention problem not a corrupt data problem, especially since this is a class assignment and others using the same data haven't had this problem.  Also the errors I am getting are syntax errors.  The only thing that I changed is the output file (name and location) all other values were default values.  I then tried slope and had the same errors. Error codes: 010328(syntax error at or near new symbol NEW LINE) and 010267 (syntax error in parsing grid expression).  I am not using script or code just the standard tool.
0 Kudos
1 Reply
StephanieShaw
Emerging Contributor
I found another forum where someone was having a similar problem with another tool but getting the same error codes.  It was my file path length that was the problem (to many degrees of separation from the root drive).  I downloaded the file to my root drive so that it was C:\folder\geodatabase\hillshade and it worked fine.  ArcGIS 10 seems to be a little more picky than 9.3.1 on this matter.
0 Kudos