Try this:
Hello,
So I tried your suggestion and I am receiving the following error:
Here is my model stripped down to one line, from 44, (the full model tests each layer name for 44 possible names so that the correct symbology can be applied):
And my script in Calculate Value to identify the names of the input feature classes in order to determine the correct symbology:
Any help would be appreciated.
I think you can simplify further, if your symbology layer files named the same as your feature class names? Connect the model element Name to the Make Feature Layer tool layer Name parameter, for the Save To Layer file tool specify the output as: %Name%_sym.lyr. Put your pre-symbolized layer files in a folder (create a Folder variable Symbology Folder to point to this folder of .lyr files), and supply the path to them as input to the Apply Symbology From Layer tool (you should need only one, not 44) using this syntax:
%Symbology Folder%\%Name%_sym.lyr
This approach avoids your 44 chains with preconditions, you can just construct the paths directly on each iteration as needed, all in one processing chain.