truncate resubmitErrorMessage