exception handling for sql error in text unit processor