in reply to Re^2: HTML::Template frustrated...
in thread HTML::Template frustrated...

Exactly. So if the error says

Attempt to set nonexistent parameter 'loop_name'
rather than
Attempt to set nonexistent parameter 'SCHEDULE_ROWS'
then I would guess that you are passing the literal string 'loop_name' rather than the value of $loop_name (or however you have it stored in your program.)

That is why I suggested that you search your code for the string 'loop_name' . (Part two of that, left implicit, was to check your quotation/interpolation of $loop_name.)

But you didn't do that.

You did insist that "well yea the 'loop_name' is the loop SCHEDULE_ROWS, I don't get why it doesn't find it" , which is not the same as actually examining the value of the variables in your code. See Data::Dumper and The PerlMonks Basic Debugging Checklist.

(Tip for next time: You should copy and paste inside <code></code> tags the complete error message your program gives you.)

The way forward always starts with a minimal test.