I have a model and a sub-model within it and the output of my sub-model uses a local variable name to create and save new Feature Classes in a GDB Feature Dataset.
Variable name= Crime_Type (eg. Assault, Battery, Homicide, etc.)
Output = %Crime_Type% (this is a model parameter)
The main model should take this new FC in iteration 1 and run to completion before the first model iterates a second time.
I have two problems:
First, the %Crime_Type% input for the main model is not found because it is being treated literally (Failed...cannot find ...Crimes/%Crime_Type%) instead of looking for the file that was created in the sub-model (.../Crimes/Assault).
Second, when running the main model, the sub-model runs to completion, iterating as it should, before the main model starts. I need the sub-model to run one iteration and give that to the main model before the sub-model iterates again.
I may be missing something simple with Preconditions, but I am stumped. Any advice is appreciated.