Hi All, Today I'm encountering a strange issue whe...
# suitescript
r
Hi All, Today I'm encountering a strange issue where when creating a CSV with 1 header and few lines getting added twice to the CSV
a
you're doing this with suitescipt and saving it to the file cabinet? what's the data source? a saved search? suiteql? something else? share your code?
r
Data via a search which is not duplicated . I triple checked the data . I'm going to try a sample script and see if I can replicate the issue
Copy code
var fileObj = file.create({
        name: fileName,
        // fileType: file.Type.CSV,
        fileType: file.Type.PLAINTEXT,
        contents: csvData
      });
Also this is a old script that was working last week according to the customer
a
huh well that IS weird
r
How are you creating your variable csvdata ? If you are creating manually there might be some issue with your loop or something.
r
Seems it was a NS issue and now its working as expected
a
facepalm
m
I have had an issue with scripted saved searches returning different data than the UI before. It's pretty rare, but I have had it happen as well.