Good suggestion, and good programming practice. I moved the code to a user-defined handler, with no changes, and it worked as expected. But it would still have been useful to understand what went wrong.
Topic:
Programming Languages
SubTopic:
General
Tags: