Caught flatfooted.

This idiom or expression like phrase means:

Caught by surprise.
Caught unprepared.

Bank executives were caught flatfooted by the public anger over their large year end bonuses.

Also:
Blindsided.
Caught off guard.