So it's a User Event script - the error comes up o...
# suitescript
t
So it's a User Event script - the error comes up on the afterSubmit function and errors out and shows that error as an UNEXPECTED_ERROR