Might be you excel is look a like this where 2 row is empty and you give the logic
and in the else i think you are passing break activity . so when it goes for the 2 row where data is empty it goes in the else branch and break that loop.so if you are using loop remove that.

