|apologies, a couple of MY mistakes I saw (i'm new at this, thank you in advance for your patience).|
should not have had quotes around Route\:
EDIT: I displayed the record type stored in RT and it is Route\,so the error resides in the IF statement.
exactly, the real messup (mine, not yours) is here:
if /i !rt! equ "Route\" (
this one SHOULD have quotes, around the var:
if /i "!rt!" equ "Route\" (
i'm about sure this one is what's holding everything up.
the first error will just put quotes around the Route\ on output but not hold things up.
I will run a test on my end to make sure everything works as it should, but these two fixes will hopefully unblock the pipeline.
"- changed the WRITE section a bit."
you also picked up on a really dumb mistake i made in the logic where i overwrote the !line! before output. good detective work! and apologies for not getting it right.