sequence in modelbuilder

691
6
Jump to solution
09-07-2023 04:43 AM
SebastianEnnenga
New Contributor II

Hey guys,

I have a problem with the modelbuilder. Can I somehow manage the sequence of processing?

On the picture below you can see my model. And it seems like, that the sequence of the processes are not correct. In that example there is a "clip" which gives an error, because the input file was not created before.

Does anyone know how to arrange/manage it?

thx in advanced.

Sry for my bad english 😉

grafik.png

Tags (2)
1 Solution

Accepted Solutions
SarahRijneke
Occasional Contributor

I believe setting the output of the clip as a parameter will force the model to run the clip process before the tool that requires the clip feature as an input. 

View solution in original post

0 Kudos
6 Replies
DuncanHornby
MVP Notable Contributor

You say the Clip tool is unable to open the output of the Copy Features tool? What is the error message? What is the output path? The fact the model has coloured up suggests this input to clip tool is valid.

0 Kudos
SebastianEnnenga
New Contributor II

grafik.png

0 Kudos
SarahRijneke
Occasional Contributor

I believe setting the output of the clip as a parameter will force the model to run the clip process before the tool that requires the clip feature as an input. 

0 Kudos
DuncanHornby
MVP Notable Contributor

I would try running the model up to the copy feature tool then attempt to add the new dataset manually in Arcpro to a map, may be that will give you some insight into why the clip tool cannot open it? For example may be you have copied nothing...?

0 Kudos
SebastianEnnenga
New Contributor II

Ty very much.

Seting it as a parameter works.

Have a nice sunny evening.

 

ShitijMehta
Esri Regular Contributor

Hi, 
We should have to mark it a model parameter since the input to clip is the output of copy features. Clip should respect the dependency and run Copy features before run executes. There might be an issue which we might have to check. Please could you share the version of ArcGIS Pro you are on?

Also, there is precondition which can help you control your execution flow. Precondition should not be needed here based on the model image, but that's an option. 

Just as a side question, is Make feature layer tool needed for the model? Are you setting an sql on the Make feature layer tool? You can use the Select tool that select and created an output at the same time in that case. If the make feature layer is not needed, then we can pass the data directly to clip?

Is it possible to share your model?
Thanks for your post and help!

 

0 Kudos