I exported a script listed from a model (both listed below) and keep getting the two errors Error 000837 and Error 000732 right around the Create Feature Dataset. The script is also not creating folders within folders like it shows in the model. The script obviously needs to be tweaked but I'm am a novice with Python and have no idea what exactly is causing all the issues in python. Is anyone willing to point me in the right direction for fixing these error? Any help would be greatly appreciated.
# Import arcpy module
import arcpy
# Script arguments
a500yr = arcpy.GetParameterAsText(0)
if a500yr == '#' or not a500yr:
a500yr = "C:\\Users\\mgreen\\Desktop\\a500yr" # provide a default value if unspecified
Coordinate_System = arcpy.GetParameterAsText(1)
# Local variables:
WSEL_02PCT = a500yr
Work = WSEL_02PCT
WSEL_02PCT_gdb = Work
FSB_02PCT = WSEL_02PCT_gdb
FSM_02PCT = FSB_02PCT
Fin_Dlvb = WSEL_02PCT
WSEL_Tin = Fin_Dlvb
Depth_Gr = Fin_Dlvb
WSE_Gr = Fin_Dlvb
Bounding_Polygon = Fin_Dlvb
Floodplain_Final = Fin_Dlvb
# Process: Create Folder
arcpy.CreateFolder_management(a500yr, "WSEL_02PCT")
# Process: Create Folder (2)
arcpy.CreateFolder_management(WSEL_02PCT, "Work")
# Process: Create File GDB
arcpy.CreateFileGDB_management(Work, "WSEL_02PCT", "CURRENT")
# Process: Create Feature Dataset
arcpy.CreateFeatureDataset_management(WSEL_02PCT_gdb, "FSB_02PCT", Coordinate_System)
# Process: Create Feature Dataset (2)
arcpy.CreateFeatureDataset_management(WSEL_02PCT_gdb, "FSM_02PCT", Coordinate_System)
# Process: Create Folder (3)
arcpy.CreateFolder_management(WSEL_02PCT, "Fin_Dlvb")
# Process: Create Folder (4)
arcpy.CreateFolder_management(Fin_Dlvb, "WSEL_Tin")
# Process: Create Folder (5)
arcpy.CreateFolder_management(Fin_Dlvb, "Depth_Gr")
# Process: Create Folder (6)
arcpy.CreateFolder_management(Fin_Dlvb, "WSE_Gr")
# Process: Create Folder (7)
arcpy.CreateFolder_management(Fin_Dlvb, "Bounding Polygon")
# Process: Create Folder (8)
arcpy.CreateFolder_management(Fin_Dlvb, "Floodplain_Final")
Update: Figured it out.
a500yr = arcpy.GetParameterAsText(0)
Coordinate_System = arcpy.GetParameterAsText(1)
Needs to match the order of Parameters in the Script Properties in the toolbox. (i.e. a500yr needs to be listed first and Coordinate_System needs to be listed second in the parameters.)