Hello,
I'm using ArcGIS Desktop 10.3. My workspace parameters are set correctly, to the geodatabase with all the other feature class files. When I run the Clip tool, it adds an extra ".shp" to the output filename, and then gives me the error that the output name contains invalid characters (the period).
I've tried deleting the .shp in the name before running. I've tried running the tool in Arcpy, with the same result.
The data I'm clipping is from a state agency, gis shapefile made publicly available.
Any ideas what to try next?
Solved! Go to Solution.
send the shapefile to a folder where it is intended to reside, otherwise use a gdb featureclass
send the shapefile to a folder where it is intended to reside, otherwise use a gdb featureclass
I don't have 10.3.0 to test, but checked it with 10.3.1 and it worked as expected. Are you using the clip_analysis tool? Clip—Help | ArcGIS for Desktop
Python snippet
# Replace a layer/table view name with a path to a dataset (which can be a layer file) or create the layer/table view within the script # The following inputs are layers or table views: "GMU", "ClipPoly" arcpy.Clip_analysis(in_features="GMU", clip_features="ClipPoly", out_feature_class="C:/_temp/clippedGMU.shp", cluster_tolerance="")
Some things to check:
Check those things out and see if that fixes it. If you are still getting a double .shp, give a snapshot of the command window and hoe you have it filled out. Although I tested in 10.3.1, I had 10.3.0 for quite a while and don't remember any issues, just fyi.
Make sure you set the SCRATCH WORKSPACE to the geodatabase in the Environment settings as well.
Thank you all for responding,
It was a folder issue--I was trying to put the .shp file into a .gdb instead of just a folder. I fixed that, and it worked fine.
Ellen