Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
scripted CSV import trouble!
I am trying to script a CSV import and I am having a very odd error happen.
the line below that says imprt.setPrimaryFile(fileContents); generates an error
CANT_FIND_SAVED_IMPORT
No saved import with internalId [then is shows the actual contents of my file variable fileContents]
this does not make sense since this is the line that sets the Mapping?
Any thoughts?
Can anyone see what is wrong with this code
var imprt = nlapiCreateCSVImport();
var imptmap = '85';
imprt.setMapping(imptmap);
imprt.setPrimaryFile(fileContents);
imprt.setOption("jobName", "job1Import");
var imprtId = nlapiSubmitCSVImport(imprt);
0