Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
INVOCATION_WRAPPER#9 Error
Hi All,
In a oneworld environment
I have a suitelet which creates statistical JE but i got following error while submitting the Statistical JE record.
Code: UNEXPECTED_ERROR Details: ReferenceError: "pp_ss" is not defined. (INVOCATION_WRAPPER#9)
below is my code
function createStatisticalJE(subsidiary){
var mappings = loadMappings();
if(mappings){
var rec = nlapiCreateRecord('statisticaljournalentry');
rec.setFieldValue('approved','T');
rec.setFieldValue('trandate',getDate());
rec.setFieldValue('unitstype',mappings[0].getValue('custrecord_uom'));
rec.setFieldValue('custbody_report',report);
rec.setFieldValue('subsidiary',subsidiary);
for(var i=0; i<mappings.length; i++){
var account = mappings[i].getValue('custrecord_statistical_account');
var savedSearch = mappings[i].getValue('custrecord_saved_search');