Something similar happened to me when I upgraded a Project from 6.5 to 9.
I used "zone_stamp 03 65".
There are two lines in its 2D Script that go like this:
stn= "st_n"+STRSUB (STR (rend0, 1, 0), 2, 1)+"b"
stk= "st_k"+STRSUB (STR (rend0, 1, 0), 2, 1)+"n"
For some reason, ArchiCAD 9 feels this is incorrect, so it must be modified to:
stn= "st_n"+STRSUB (STR (rend0, 1, 0), 1, 1)+"b"
stk= "st_k"+STRSUB (STR (rend0, 1, 0), 1, 1)+"n"
then it works.
I think the difference was that in ArchiCAD 6.5, when you use the STR() command in GDL, a leading SPACE character is put at the beginning of the string resulting from the command.
In ArchiCAD 9, there is no leading SPACE character, this is why you must put there '1' instead of '2'.
I hope you know GDL so it makes sense to you.
I hope this will be a solution for you.
Laszlo
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27