I am trying to use callbackAfterUpload with custom error messages. I am reading the excel and validating if there is any value of a cell before inserting to database. Hence using validation.
For e.g. to check a valid department, I am using this. Now problem with this the error it throws gives error code 500 and no clear description of error on screen .
if ( ! array_key_exists($depttShName, $departsArr)) {
return $errorMessage->setMessage("$depttShName is not a valid department. Please check row = $row, and column = 1 \n");
}
