I have been using the UploadfromDB.sh tool for a few months now and it has never given me a problem. However, when i'm trying to load a new report it truncates the data exactly by 10,000 records no matter how large the data set. The database that I am pulling records from grows daily so the records uploaded grows daily. Yesterday the number of records the tool says were written was 24367 (which is the correct number) but the report on zoho.com showed 14367. Then when I tried it today the upload tool said it wrote 25007 records (which is the correct number) but again the zoho report tool shows only 15007 records.
I noticed you upload the records in increments of 10,000 so it looks like one of the files is not being uploaded.
Let me know if you need any more information. Thank you.