The Dataset Name is Invalid

675
1
04-19-2011 06:41 AM
DuncanRager
New Contributor
Greetings,

I can't seem to get past this snag... I'm attempting to "CreateTerrain" from a LAS tile but the python window in ArcInfo 10 doesn't like the name for my dataset. The problem portion of the script reads simply:


# Define inputs
terrainDataset = "C:\\GIS\\Base\\Lidar\\Issue_Terrains.gdb\\IssueTerrains"
currentTerrain = shorterTitle + "_T"
aps = .65

# Create Terrain
arcpy.CreateTerrain_3d(terrainDataset, currentTerrain, aps, "50000", "", "WINDOWSIZE", "ZMIN", "NONE", "1")


And then it spits out an error reading...

Runtime error <class 'arcgisscripting.ExecuteError'>: ERROR 999999: Error executing function. The dataset name is invalid. Failed to execute (CreateTerrain).


Whenever I insert a generic title in the out_terrain_name spot (where my "currentTerrain" is) like "test_output", it works just fine. Does the geoprocessor not like a concatenated variable for that input?

Thanks so much.

DR
Tags (2)
0 Kudos
1 Reply
TylerGarner
New Contributor
It would help me to see more of your code.  Specifically, where you create the 'shorterTitle' variable.
0 Kudos