Tim
03/24/2025, 8:42 PMFileReadLine (with a bit of fancy handling) to process one row, without having to read the whole file into memory first. And then I can parallelize the row processing to speed the whole thing up. This part all works wonderfully.
But now I'm trying to adjust it to handle xlsx files too. My basic plan was to convert the xlsx file to a csv via:
cfspreadsheet(action: "read", src: filePath, format: "csv", name: "local.csvString");
FileWrite(filePath, local.csvString);
and then just pass the CSV file to my previously mentioned code. But what I'm finding is that ColdFusion is throwing an OutOfMemoryError. It's getting caught and logged by my onError function in Application.cfc. But I'm trying to figure out how to catch it before that, and give users a better error message.
Wrapping the cfspreadsheet in a try/catch is not doing the trick. So is there something else I can try? I'm also willing to take ideas on how to more efficiently process these files.Patrick S
03/24/2025, 8:46 PMTim
03/24/2025, 8:51 PMMatt Jones
03/24/2025, 8:55 PMPatrick S
03/24/2025, 10:22 PMDavid Johnson
03/25/2025, 1:35 PMaliaspooryorik