I've never really done any scripting in indesign earlier and I thougth everything was going alright. Up and until I moved from a test file to the designed template.
The scripting relies on two columns of text (labeled right / left) which supplies information to a couple of text areas with unique labels.
The two columns gets the text properly, but the other text areas isn't reachable by the code, or even selectable.
So I was wondering, what is the difference between the text areas in the template and the ones I make "outside" of the template?
There is no difference assuming you did the same in document and template.
Perhaps the OP is talking about master pages? (I think that would cause the problem he describes.)