i tried that not working. thank you though.
generated another script it has no error but, it is showing empty sheet in create sheets.
any idea why.