After running the process for the 1st time, the name of sheets got corrected. So why in the subsequent runs, the sequence of then is being executed instead of else.
I have shared output’s screenshot where you can clearly see the log of then sequence is being registered for every excel file even if the name of sheet in those excel files is Sheet1
Can you try to use <> operator instead of isnot operator because isnot operator doesn’t compare their value. Please see the following document in details.