Write to excel Template error while using the sheet name controlled by flow variable in a loop

Hi everyone I am facing a similar issue which I faced during XLS formatter ( XLS Formatter error :the input file already contains formatting styles only in the last iteration ) where @takbb helped me with the component XLS Format collector and retriever. Right now I just need to filter out in each iteration some rows and write it into a excel template file. But here I am facing the same issue after 2 sheets it ends up in an error while writing null.

Look at

node. Below is an example