Discussions
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.