Trouble with ModelBuilder model

3296
15
11-11-2021 03:42 PM
MikeMadson
New Contributor III

I have been trying to run a ModelBuilder model in a project package to be able to create a model output. I hope to send the model to a client, with the model still functional.  The model works fine in the project itself, but not in the project package. When I try to run the model, a message saying “Failed to execute (Clip)” comes up. When I validate the model, all of the shapes turn gray, except for ‘Clip’ and all immediately adjacent features. When I validate THEN run the model, I get these errors.

  • Error 000622: Failed to execute (Clip). Parameters are not valid.
  • Error 000732: Input Features or Dataset: Dataset [source of dataset] does not exist or is not supported
  • Error 000732: Clip Features: Dataset [source of dataset] does not exist or is not supported
  • Failed to execute (Clip)

I recently updated to ArcPro Version 2.9, so I think I made these attempts in Version 2.8 (hopefully that doesn't make things too complicated)

0 Kudos
15 Replies
DanPatterson
MVP Esteemed Contributor

Did you package your project to work outside your organization or just inside?

Package Project (Data Management)—ArcGIS Pro | Documentation

and in either case it looks like your data are set as defaults to the model

since you don't allow one to vary the inputs etc

Model parameters—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
MikeMadson
New Contributor III

I attempted to make it so it would work outside my organization.

0 Kudos
MikeMadson
New Contributor III

I also tried creating a geoprocessing package of the model, though I am not sure if it worked.

I found this about sharing geoprocessing packages. 

https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/geoprocessing-package.htm

0 Kudos
DanPatterson
MVP Esteemed Contributor

Did you look at the parameters link?  Your model shouldn't rely on specific data unless it has to


... sort of retired...
0 Kudos
MikeMadson
New Contributor III

I just redid the tests with ArcGIS Pro Version 2.9.0. These are the results, along with a picture of the model.

0 Kudos
MikeMadson
New Contributor III

To clarify, I did these tests in the project package.

0 Kudos
DanPatterson
MVP Esteemed Contributor

Tech Support

But, your file paths are long and contain spaces, neither which is good.  

If moving your data to a new folder (eg c:\MB_test) and recreating your sub_folders, and renaming featureclasses with spaces in their names, doesn't work, then first line.

@curtvprice anything pop out at you?


... sort of retired...
0 Kudos
MikeMadson
New Contributor III

I did these tests in the project package. Does that help anything?

0 Kudos
DanPatterson
MVP Esteemed Contributor

not me, waiting for Curtis to chime in


... sort of retired...
0 Kudos