Examples of using "驚いたことに、彼は試験に失敗した。" in a sentence and their english translations:
To my surprise, he failed the examination.
He failed in my having been surprised at the examination.