I'm importing CSV data from a file in Google Drive using this function:
function importList(fileId, sheetName) {The function runs without errors. The problem is that the CSV has around 500+rows and 10 columns and the imported result brings in only the first 302 rows. The data 'stops' in one case at 337 rows and 5 columns. Where the CSV has a blank cell at the 6th column of row 337, this is where the data appears to stop importing. A similar result occurs where I import some other files, but the results are not consistent.
When I Logger.log the length of newData array, this is reflecting the length of the array being sent to the sheet and a Logger.log of the last row of the array also returns what is being posted to the sheet.
It's like the getBlob() isn't getting all of the data in the CSV file. I've not been able to find similar issues encountered by others. Is there some other method I can use to return a more reliable result? Or am I doing something wrong in my approach?