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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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