I have a model which adds and calculates a new field with a workspace path. I upload only one layer from database to the model (called "tline"). Parse path can detect only the name and file of this layer, not the whole path to the GDB file which contains this layer. The path can be found only if I add a workspace variable and set the path to database in this variable. So when I set a parameter "Parse type" like "Path" for "tline" layer, model won't work, it just add a new field and says that "The process did not execute because the precondition is false."
How can I find the path to GDB automatically using model builder? It is also important when I have several GDB files that have the same layer "tline" within. I just want to overcome a manual input of GDB file into the model.