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!
nlapiSubmitRecord on 'salesorder' Fails since 2007.0
Hi All,
For the past week since we were moved to 2007.0, we have been try to identify the source of an UNEXPECTED_ERROR that is thrown when the following two lines execute within a server script.
var so = nlapiLoadRecord('salesorder',sRes[i].getId());
nlapiSubmitRecord(so,false);
This is a server script that executed flawlessly prior to 2007.0. What we have discovered is that it fails on all web orders that have yet to be touch through the browser interface. However, if you go in an edit the sales order and save it WITHOUT making a single change, the script executes just fine.
0