I have a number of shapefiles (home range polygons) created in R. In arcgis pro, I can reproject the shapefiles in batch just fine. However, in model builder, when I use Iterate feature classes, the shapefiles are not recognized with the project tool. The error code is:
Other geoprocessing tools work just fine on these shapefiles in model builder. #project error in iterate feature class
Solved! Go to Solution.
Interesting. Try this - use the Feature Class to Feature Class GP tool on 5 or 6 shapefiles. Have the output from the GP tool go to another folder on disk. Update the Model to point to the new folder and re-run. Does the error message persist?
Dean - I created a Model in ArcGIS Pro that uses Iterate Feature Classes and the Project GP tool - see attached. My model recognized the shapefile folder without any problems. My Project GP tool output is going to a File Geodatabase - are you wanting the output to be a shapefile or geodatabase feature class? Please advise.
Robert, thanks for the response. I want the output to be shapefiles.
No problem - for the 3rd parameter i used the open folder and pointed it a folder on disk and then added .shp to end of my %Name%_Prj name. Ran the model and all input shapefiles were reprojected to WGS1984 in my c:\temp\test directory.
Looks like our models are very similar. The part I can't reconcile is that I can drag the same shapefiles in the batch process and it runs just fine. But it won't recognize the shapefiles when I point to the folder. Thanks for looking at it.
Interesting. Check your Folder permissions perhaps? Is it set to Read-Only? I'll keep digging.
Not sure if this is relevant to the Red X issue you're experiencing but something else to double check - a Tech Support FAQ on the Red X.
Folder permissions appear to be ok. Tried the Red X fixes but the model still failed with the same error. Really appreciate the help.
Thx for the folder information. What release of ArcGIS Pro are you using? I'm testing this workflow on AGP 2.5.0.
Robert,
My AGP is 2.2.2. Just out of curiosity I pointed to the folder with the shapefiles that I reprojected in the batch mode. Those shapefiles were recognized. I'm starting to think the shapefiles coming out of R are missing something that model builder is looking for but the batch process doesn't need. The original R-based shape files have the following files: .dbf, .prj, .shp., .shp.xml, and .shx. The batch re-projected shapefiles (the ones model builder recognizes) have the following: .dbf, .prj, .shp, .sbx, .sbn, and .cpg.