The definition of success can vary depending on what the objectives are in a certain situation. Pressure applied on the apartheid regime in South Africa through the Sullivan principles and other sanctions is one example. The international sanctions that were done on Iran to pressure it to come to the negotiating table would be another example that could be cited. I will grant you it's hard to prove, but I do think that the sanctions Canada, the United States, and the EU imposed on Russia did keep Russia from going further into Ukraine. I also want to acknowledge that the Ukrainians' ability to defend their territory against further Russian aggression played as much if not more of a role in limiting Russia's advance.
It depends on how one defines success. It depends on what the objectives are and sometimes it is to prevent a bad situation from getting worse, perhaps, rather than undoing the bad situation entirely.