I'm working on a project where I have to iterate through geodatabases and handle some debug errors if they exist. For this I've created a ModelBuilder model, in ArcGIS 10.7.
Essentially, what the model does is iterate to the different databases (LoggGeoDB in the model) and using calculate value to determine if the file exists, using this as a precondition for selection. The calculation works fine, but the precondition fails on the second iteration.
First iteration
None of the data sets exist, and all the Select processes successfully do not run: "The process did not execute because the precondition is false." As intended.
Second iteration
Calculate Value
and Calculate Value(3)
finds their corresponding data sets and returns true, and the data is selected correctly. Calculate Value(2)
still returns false, as intended, but Select Data(4)
still runs, even though the precondition is false.
Any ideas for how to work around this - would prefer to keep it as a model if possible. I've tried to make the Calculate Value(2)
always return false, bypassing the code, but the problem persists.
I also just tried making all the calculate value tools always return false, but Select Data(4)
still attempts to run (the other two aborted as intended).