Looks like n/file.create function is throwing erro...
# suitescript
m
Looks like n/file.create function is throwing errors again, anybody else getting UNEXPECTED_ERROR when running that function?
b
what does the code look like
m
Copy code
var fileObj = file.create({
                name: this.scope + '.json',
	            fileType: file.Type.JSON,
	            contents: JSON.stringify(this.object)
	        });

			fileObj.folder = 110816;

			fileObj.save();
It was working just fine, then it just started throwing unexpected errors
worst part of it is it's random
b
i can only guess that it doesn't like whatever value is in this.object or it doesn't like the name in this.scope
j
is it throwing on file.create or fileobj.save ?
m
it's throwing it on file.create