periblepsis:
I'm not certain (LTspice can exhibit some fancier-than-expected behavior, sometimes) but one thing that stands out like a sore-thumb to me is that your symbol shows it is an "X" type device (prefix) which means Spice will look for a .SUBCKT. But your model is of type "D" which is normally assigned to the usual diode symbols (which you cannot directly edit as a symbol to change it from a "D" to an "X".) So I think you have created a diode-looking symbol that is really an "X" symbol to LTspice. It would be better to just grab up a diode and then give it that name, perhaps?
You could, technically, create a .SUBCKT of that name and just stuff the D model into it. That might also resolve the issue.
user562960:
@periblepsis thanks for the suggestion! You solved the issue! I was told to change the prefix to "X" (you can do this by holding Ctrl and right click on the diode) if it's an external part, but it seems like it only applies to "U" part. Thanks!
periblepsis:
I'd glad it worked out. Just remember that Spice was created when computers used 80 column punched card decks. The first column specifies what the device model is. An R in the first column says to use a resistor model. A D in the first column says to use a diode model. An X in the first column says to use a user-written model inside a .SUBCKT. (Fancy extension that was deemed necessary to provide extensibility to Spice.) That's all that's going on. When you make a schematic, what really happens is a card deck is generated, called a netlist
. This then goes to the ancient Spice engine.
What you did is to force an X in the first column when a D was desired. This confused Spice, since it then went looking for a .SUBCKT subroutine with that name. Of course, it didn't find it and complained. [Text removed.]
The above was originally kindly posted as comments, but is really an answer. Therefore they have been moved and reposted here, with a small amount of text removed, with attribution, in accordance with the CC BY-SA 4.0 license by following this approach to synthesize an answer from comments. The answer has been set to "Community wiki" so that I don't earn any points from upvotes on this answer, as it isn't mine. (SamGibson)