Quote Originally Posted by Mack_DBA View Post
Can you see any other reason, why the same code runs successfully on one machine and on another it shows this error?
Yes.
Different data, data on one server raises an exception while data in the other server doesn't.
Either way, code is not able to handle the raised user defined exception.