Script joins multiple tables (summarized from an original table) and then I try to clean up the column names. The log informs that the error is in this line:
:Name( "HT_par_50p subch" ) << set name( "HT par subch" );
but in the log it shows the error location (/*###*/) at:
:HTBar_par_50p subch/*###*/ << set name("HT par subch");
which is a line from the previous version of the code.
I have "Names Default to Here(1)" at the very top of the script to ensure that no previous runs should interfere. I've tried adding "Delete Symbols()" but the script still stops in the same place.
Any ideas what could be happening and how I can stop it?