I'm not sure why I'm running into this problem. I thought it might have something to do with the merged file being locked or open, but I don't see a "LOCK" file being created in Windows Explorer.
workspaces = arcpy.ListWorkspaces("*", "Folder") for workspace in workspaces: arcpy.env.workspace = workspace shps = arcpy.ListFeatureClasses("*", "ALL") ## Process: Merge Layers descWorkspace = arcpy.Describe(workspace) workspaceName = descWorkspace.baseName mergeOutput = workspaceName+"_merge" arcpy.Merge_management(shps, mergeOutput) ## Process: Dissolving Features <--HERE IS WHERE I'M HAVING PROBLEMS disInput = mergeOutput disOutput = mergeOutput+"_dis" arcpy.Dissolve_management(disInput, disOutput)
This is the error that I'm getting after the merge runs successfully:
ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset Bus04_merge does not exist or is not supported
I'm obviously missing a step here... (or using incorrect parameters, but I can't figure out in what way) Thanks for your help!