Hi all,
I've created a model in model builder that converts a DEM into a vector slope polygon, but in running my model I've gotten two errors at the Raster to Polygon part. I've double checked the characters in the inputs and outputs and there are no spaces or invalid characters. Additionally, the input and output locations are valid. Any idea what could give these errors? Thanks in advance!
ERROR 000622: Failed to execute (RasterToPolygon). Parameters are not valid.
ERROR 000354: The name contains invalid characters
Failed to execute (Raster to Polygon).
Solved! Go to Solution.
your shapefile should be going to a folder as well. it appears to be going to a gdb, drop the *.shp if you want it to go to the output gdb or alter the path to the output folder
Raster to Polygon (Conversion)—ArcGIS Pro | Documentation
A valid integer raster is required and the error about invalid characters may disagree with your conclusion.
Output as a featureclass to a file geodatabase is best. If you are in doubt, post the destination and source filenames so people can check. Things like filename length, path length etc may come into play depending on the type of output you specified.
Do you have a screen grab of the GP tool that we can visualize to assist with troubleshooting? Here is a breakdown of each error message:
000622: Failed to execute (<value>). Parameters are not valid.—ArcGIS Pro | Documentation
000354: The name contains invalid characters.—ArcGIS Pro | Documentation
Might be hard to see but it takes the input parameters of the workspaces, "Output Folder" and "Output GDB" and then right before Raster to Polygon Tool I have it converting it to an integer raster to create an integer raster for the format.
The Output Folder Path is:
U:\ProjectData\State\ProjectName\ProjectFiles\USGS
The Output GDB path is:
U:\ProjectData\State\ProjectName\Databases\Site_Project_SDE.gdb
Hi @GeoRenewable ,
If you run the standalone Raster to Polygon gp tool directly, do you get the same error?
Hi @RobertCao ,
If I run it in standalone, I do not receive the error and the geoprocessing tool works. Seems to only be an issue with the way the model is running it.
your shapefile should be going to a folder as well. it appears to be going to a gdb, drop the *.shp if you want it to go to the output gdb or alter the path to the output folder
@DanPatterson - thank you, that was it! I dropped the ".shp" because it's going to the file GDB