I tested that script here and it runs fine; however, I tried with a new project file created in Origin 8.x.
It might be best if you can email us at tech@originlab.com. You can include your Origin project file. The column name with the '.' at the end looks a bit odd.