At least one novel actually notes that Vader, had he given in truly and completely to the Dark Side, would have been able to repair his body (and presumably grow to his full Force power again). Nifty.
Looking at the Prequels, which did have a far better storyline as far as palpatine was concerned, he made a number of oversights, but they were comparitively minor and he was able to overcome them.
For example:
Ep 1:
It’s likely that he intended to kill Amidala: some references in the novel imply that, as does Qui-Gon’s line in the movie. Killing Amidala would make it impossible for the Trade Federation to legalize their move ex post facto. This would allow Palpatine to get that “strong sympathy vote” he needed, and ride a wave of popularity into power. Groovy.
But, Palpatine was able to bargain her escape into power, making the accidental failure into an advantage. Having Amidala there meant he didn’t have to make any negative statements himself, and look humble while also being righteously indignant.
Episode 2:
Again, he was trying to off Amidala, for mostly the same reasons. A pretty young Queen dying suits his purposes a lot more than that same Queen heading the peace faction. He failed, but was able to insist that she hide out, killing her effectiveness.
Also in Episode 2, he probably didn’t wish the war to start at that exact moment. Obi-Wan’s locaitng Jango was not part of plans, surely, but it was also irrelevant. By the time the Jedi could do anything about it, the war was ready to start. Again, the Jedi’s interference played into his hands. Jango attempted to capture Dooku - but Dooku had committed no crime. Great propaganda for Dooku. Republic ‘agents’ (Anakin and Amidala) commit assault and murder, blah blah blah. Then, Jedi and Republic troops make an “unprovoked” attack. None of it is the truth, exactly, but it’s close enough that it makes great Agitprop.
And of course, as Chancellor, he could use that very same propaganda to talk about heroes nobly sacrificing their lives blah blah, while clamping down on the news to keep them from showing treasonous materials.