AnsweredAssumed Answered

ERROR 000732: Input Features: Dataset _  does not exist or is not supported

Question asked by avigis on May 29, 2012
Latest reply on May 29, 2012 by avigis
Hello,

I know people are not new to this error and some have actually overcome it. But strangely I have not been so lucky.

Here is my code

import arcpy  gaugeTablePath = arcpy.GetParameterAsText(0)   #input place = arcpy.GetParameterAsText(1) #input watershedTablePath = arcpy.GetParameterAsText(2) #input outFileName = arcpy.GetParameterAsText(3)  if arcpy.Exists(outFileName):         arcpy.AddMessage("File " + outFileName + " is deleted!!")         arcpy.Delete_management(outFileName)  row = arcpy.SearchCursor(gaugeTablePath, "\"STANDORT\"='"+place+"'","","PEGEL_NR")  gaugeStationNum = "" for line in row:     gaugeStationNum = line.PEGEL_NR  whereClause = '\"PEGEL_NR\"='+str(gaugeStationNum) wsTable = arcpy.Describe(watershedTablePath)  arcpy.Select_analysis(wsTable.basename,outFileName,whereClause)


I am running this script from inside the model builder.
This is the path of the feature class which does not exist!!!!!

H:\CIV\Customization_Exercise\LabExercise_1\File_Geodatabase.gdb\fd\watershed

As you can see it has no space, wrong slash or anything else. About the "." I cannot help.

this is the error I get...
<class 'arcgisscripting.ExecuteError'>: Failed to execute. Parameters are not valid.
ERROR 000732: Input Features: Dataset watershed does not exist or is not supported
Failed to execute (Select).


Strangely arcpy is able to Describe my "watershed" perfectly. Also "gauge" which is inside the same feature dataset is being found and operated on by SearchCursor perfectly.
Also worth mentioning is that arcpy.Exists() is also not working. Because I created the result file by normal select and hardcoding and it was there but still Exists returned 0.

I am at my wits end, please somebody help!!!

Thanks,
Avishek

Outcomes