Although Emperor Palpatine had plans within plans in the Star Wars canon, some relatively insignificant characters nearly ruined all of his work to bring about and maintain his Galactic Empire. Whether it was just before the dawn of the prequels or during the Galactic Civil War itself, there are multiple instances in which Palpatine's schemes were nearly undone. At the very least, some of the Emperor's manipulations would have had to drastically change thanks to some very unexpected individuals.
https://screenrant.com/star-wars-insignificant-characters-ruin-palpatine-plans/