'He recommended (to me) investing in the stock market'
I put 'me ha recomendado que invertiera en bolsa' recomendar + imperfect subjunctive.
This was marked wrong and the only alternatives shown being recomendar + infinitive 'me ha recomendado invertir en bolsa'
Why can't I use the subjunctive here?
Gracias