Wrong output of Script

I tried running a script but after few rows, the data from different column started to show.
For example, I tried loading data in column index 114. It is showing correct data till almost half number of rows but after that it is showing data of column 112.
I am attaching snippet of my code.

Column R took value of Column P. Also column P shifted.

1 Like