ymowald
08/17/2021, 5:56 PMfile.load()
on a file greater than 10MB in size I get an error. I was hoping to at least load a large file and use File.lines.iterator()
to process it. Is there a way around this Netsuite limitation? My script is of type suitelet.battk
08/17/2021, 6:02 PMymowald
08/17/2021, 6:13 PMconst csvFile = file.load(fileId);
and the file was previously generated via
const fileId= file.create({
name: "result.csv",
fileType: file.Type.CSV,
folder: dataFolderId,
isOnline: false,
encoding: file.Encoding.UTF_8,
contents: 'BLANK'
}).save();
const searchTask = task.create({
taskType: task.TaskType.SEARCH,
savedSearchId: searchId,
fileId: fileId
});
I run different saved search for the searchId and depending on the saved search the file size changesbattk
08/17/2021, 6:14 PMymowald
08/17/2021, 6:15 PMbattk
08/17/2021, 6:27 PMbattk
08/17/2021, 6:27 PMbattk
08/17/2021, 6:27 PMrequire(["N/file"], function (file) {
const fileId = "10130";
const csvFile = file.load(fileId);
});
ymowald
08/17/2021, 6:33 PMstalbert
08/17/2021, 7:28 PMymowald
08/18/2021, 3:32 AM