Select to view content in your preferred language

Branching in ModelBuilder messages and tool inputs

853
3
04-10-2025 03:45 PM
AmyDunn
Occasional Contributor

I have a model that has two branches based on an If Value Is tool. One creates contours in feet, the other in meters. The problem I'm having is the messages still output on the branch that doesn't run. If I choose feet, I get "The process doesn't run because the precondition is false" and "All the inputs are not current" I would like for no messages from that branch to show at all if the other branch is running and vice versa. 

When I run the model as a tool it also won't let me run the tool unless I provide inputs for both branches. If I want to make contours in feet I want it to only care about the selection and fields I'm calculating in that feature class, not the meters contours, which won't exist. Is there a way to do this?

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

are your preconditions set?

If Value Is (ModelBuilder)—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
AmyDunn
Occasional Contributor

I have preconditions of True and False set on the first tool that should run after If Value Is, but not every tool in the string after that.

0 Kudos
ShitijMehta
Esri Regular Contributor

Hi @AmyDunn
i think there is a way, but before i suggest that, would you be able to share a snapshot of the model you have. It will help me see the tool in the model and the Model Tool dialog that is making it a required value. Alternatively if you could just share the toolbox with just this model, it would help make it faster to check. 
Thank you!

0 Kudos