When I am submitting sales order record, `using va...
# suitescript
t
When I am submitting sales order record,
using var soId = nlapiSubmitRecord(sorec, false, true);
It is returning this error. Can you guess why ? {\"userEvent\":null,\"internalId\":null,\"code\":\"UNEXPECTED_ERROR\",\"details\":\"An unexpected SuiteScript error has occurred\",\"stackTrace\":{\"[Ljava.lang.String;\":[\"<anonymous>(adhoc$-1$debugger.user:158)\"]},\"type\":\"nlobjError\",\"suppressNotification\":false}"
b
you can try setting doSourcing to true, and ignoreMandatoryFields to false to see if you get a better error message
otherwise unexpected errors are too general to explore without the code that generated it
t
Actually , some other script was deployed , due to which that error was coming. Nothing wrong with mine.
Thanks!