Read the sentence below to find out whether there is any grammatical error in it. The error, if any, will be in one part of the sentence. Choose the option with that part as your answer. If there is no error, choose 'D' as your answer. (Ignore the errors of punctuation, if any).

I had hoped to have met him yesterday to discuss the matter with him but he was not in his house, and so I could not meet him.

A.

I had hoped to have met him yesterday

B.

to discuss the matter with him

C.

but he was not in his house, and so I could not meet him.

D.

No error.

Correct answer is A

I had hoped to meet him yesterday