The Sandoval signing was super risky - his swing and his age gave some reason for hope, but the red flags were obvious. He was much worse than anybody could imagine.
The Ramirez signing was actually pretty good on paper - they got away without having to give him 5 years, he was still a good hitter, and actually played a competent 3B. The idea that he would completely fall to pieces while being moved to an easier defensive position, while slipping offensively (granted some of that was health related) was a nightmarish outcome.
I always wondered if they just signed Ramirez to play 3B would things have worked out better. But again, the idea of moving him to LF to save his body was not a silly one.