Dynamically name excel sheet

Actually i have executed the same and it works in my test process. But this error is coming in my main process though its the same steps executed.

And i have tried initializing it multiple times it still shows the same.