Why Unexpected error is occurred when email is send to a employee using Suite script Unexpected error is mainly occurred due to two reasons. Email field in employee record was emptyIn email.send session, the value in body has null or empty