I try to merge all Shapefiles from one folder together into one, using this:
shapeList = arcpy.ListFeatureClasses() print shapeList for fc in shapeList: if fc == "*domain*": arcpy.Merge_management(shapeList, "MergeList")
But I always get this error message:
Traceback (most recent call last): File "<console>", line 1, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 3987, in Merge raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Datasets: -- HERE THE LIST OF FEATURECLASSES -- does not exist or is not supported Failed to execute (Merge).
I am sure there are only feature classes in the folder, when I try to use a Merge function I get the Error:
ERROR 000338: Inputs must be either all Feature Classes, Tables or Rasters; not mixed. Failed to execute (Append). Failed at Thu Jan 29 16:22:28 2015 (Elapsed Time: 0.00 seconds)
Does anybody know what's going wrong?