In the logs, you should see where debugged the getRecordsHelper method. Do you see the number of debugs that you were expecting? Also, for every batch there will be a separate transaction for start, finish, and every time the execute method runs. On which of these methods is the error thrown?
How are you executing this batch? You can try decreasing the scope argument in the Database.executeBatch() call to see if th problem is with the number of integers being processed in the execute method.
How are you executing the batch? What happened when you decreased the scope argument?
All Answers
How are you executing this batch? You can try decreasing the scope argument in the Database.executeBatch() call to see if th problem is with the number of integers being processed in the execute method.
How are you executing the batch? What happened when you decreased the scope argument?