I have written the following code and it has worked fine for 134385565 rows of data. I have about 10 million left to run and I keep getting the numberFormatException error.