My guess is you have an explict format string (like a to_date or to_char) somewhere that you are passing garbage to.