Modelbuilder: Inline variable %Workspace% not working with Workspace Iterator

6358
10
04-23-2014 09:12 AM
LukeFloch
New Contributor III
I have 30 gdbs with identically named features in different geographic zones. I'm trying to run the same tasks on each by iterating through each gdb in a folder. However, when I try to use the %Workspace% inline variable in the model it gives me an error that the FC does not exist when I try to run it. If I pull the iterator out and replace it with a single gdb from the folder and name it "Workspace" the model runs just fine.

Attached is a trimmed down version of the model with just the first process being run, where the pathname for Wilderness = %Workspace%\Wilderness

Hopefully there's something simple I'm just missing because I haven't used this before. Thanks
0 Kudos
10 Replies
AmyKlug
Occasional Contributor III
Wayne, could you create a list of feature class names (each gdb could grab from) and call them in a loop in a certain order then create outputs and name them in the loop as well depending on which step in the loop they are? That way you would not have to parameter everything, just use the folder that contains the gdb's in it.
0 Kudos