Necessary Fail

""There are many parts of my youth that I'm not proud of. There were loose threads - untidy parts of me that I would like to remove. But when I pulled on one of those threads, it unraveled the tapestry of my life.""

- Jean-Luc Picard, "Tapestry", Star Trek the Next Generation

A subtrope of the Butterfly of Doom; this trope is sometimes used to "prove" not why ~You Can't Fight Fate~, but why you shouldn't want to.

Whereas the Butterfly of Doom trope shows you everything that goes horribly wrong when you try to Set Right What Once Went Wrong; this trope demonstrates that what was once wrong was actually needed to make the present (or future) better.

Perhaps that the whole village getting nuked caused folks to denounce war. Maybe losing his wife caused The Hero to launch into his crusade to save others. Or maybe being used by the villain gives the hero knowledge and experience that will come in handy later. This is almost certainly the case if the wrong involved Hitler.

Note, this is not strictly a Time Travel Trope; sometimes the characters or narrator may simply reference the Necessary Fail as a part of backstory. But it can indeed be used in time travel stories to demonstrate how removing that downer event can lead to things being much worse.

See also My Greatest Failure, Misery Builds Character.

Comic Books

 * This turns up in almost every Origin Story of The Hero. For instance, there would've been no Superman without the destruction of Krypton and the near extinction of their race. And of course, it was a little boy watching his parents get murdered in front of him that led to the rise of Batman.
 * That last one is subverted in a classic Batman story, however. The Phantom Stranger sent Batman to an Alternate Universe, giving him the chance to stop the murder of the parallel Thomas and Martha Wayne. At several points, Batman and Robin wonder if this means there will never be a Batman in this universe. But Batman, understandably, decides it doesn't matter, and stops the shooting regardless. In the epilogue, the readers are informed that the parallel Bruce was inspired by the masked man who saved his family in the alleyway, and would grow up to become a Batman fueled by hope instead of despair.
 * This line of thinking is the very crux of 's master plan in Watchmen.
 * Many people consider the famous Death of Gwen Stacy to be this for Spider-Man.
 * Plus Peter indirectly letting Uncle Ben die. There's a What If? issue that shows what would have happened if Spider-Man had actually caught the Burglar. Uncle Ben survives, but Peter becomes a combination arrogant Jerkass and Smug Super without any of the maturity and character he developed from being forced to accept the consequences of his actions.
 * Used in Booster Gold. His purpose is to travel time and Set Right What Once Went Wrong, but there's some kind of technobabble saying that some things have become so important to the timeline that they can't be changed. For instance, there's nothing he can do to keep Barbara Gordon from being assaulted by the Joker, because her resulting paralysis helped lead her to become information broker and super-hacker Oracle. He continues to be conflicted when Mission Control Rip Hunter tells him to let a disaster happen around him in order to preserve history.
 * Doctor Strange's story begins when he injures his hands and loses his career as a surgeon -- unable to find a quick fix, he learns selflessness and, consequently, magic. One What If? issue shows what would have happened if he could have found the miracle cure he was looking for. He became an increasingly arrogant Dr. Jerk, alienated everyone, and eventually lost his license due to a malpractice suit.

Film

 * Pretty much the whole point of Slumdog Millionaire. If Jamal's life had sucked any less then he never would have been on Who Wants to Be a Millionaire? let alone
 * Everything bad that happens to the main characters in Kangaroo Jack turns out to be . Go Jackie Legs!
 * In Star Trek, it is implied that the Kelvin's destruction at the hands of the Narada led to Starfleet developed a beefed up and tough brand new Enterprise.

Literature

 * In the Discworld novel Night Watch, Sam Vimes considers and rejects this idea. Even if it costs him his future happiness and success, he consciously chooses to change events and saves many lives.
 * In The End of Eternity, the protagonist works for an organisation that tinkers with history in an attempt to create and maintain a perfect timeline. His realisation of the existence of Necessary Fail is an important part of the story.
 * Played dead straight in Animorphs when Visser Four goes back in time to change history and make Earth easier to conquer. However, he screws himself when he gets to D-Day and realizes that Hitler is a nobody and there aren't Allies or Axis the way we usually think of them. When our heroes get the Time Matrix back, they struggle with changing things back so there was a Holocaust and think that maybe they should check out the current future and see if things are better. Eventually they come to the realization that some things are Necessary Fails and they shouldn't mess around with the past.
 * In Time Scout, this is why paradox never happens. It's never explained, it's just there.

Live Action TV
"Sawyer: So why'd you turn us around then? Don't you wanna go back there?
 * The quote above comes from the Star Trek the Next Generation episode in which Captain Picard expresses regret for his hot-headed ways which led to him getting stabbed in a bar fight. Of course, he learns that if not for that bar fight, he wouldn't have become The Captain that everybody came to know and love.
 * Next Generation also played with this again in the episode "Yesterday's Enterprise" where it is discovered that the destruction of an earlier Enterprise helped lead to peace between the Klingons and the Federation.
 * In a non-time-travel example, Star Trek VI, shows that it was the destruction of the Klingon moon Praxis that caused the Klingons to even consider peace with the Federation.
 * In Star Trek: Enterprise the faction from the future specifically state while they could've warned Earth about the initial Xindi attack that kills 7 million people, they figured it only be after the sneak attack that Starfleet would heed the greater danger. Notably it is the attack that leads to the Enterprise being retrofitted into a warship and the introduction of the famous photon torpedoes.
 * In the famous Doctor Who serial "Genesis of the Daleks", the Doctor states that although the creation of his archenemies the Daleks will have horrific consequences for the universe, there is good that will come of it, namely the many species that will join forces out of necessity to defeat them.
 * Of course, it also lead to the extinction of the Time Lords. Way to go, Doctor.
 * On the other hand, maybe that was the good.
 * The Time War would not have happened had the Daleks never come into existence.
 * The Doctor also says that the war showed who they really were, so even without the Daleks they may have planned on destroying time anyway. The Daleks just pushed the plan forward
 * In "The Waters Of Mars", the destruction of the first station on Mars and all of its crew inspired the mission leader's granddaughter to explore space, leading to a long family line of people who would eventually help Earth make peaceful contact with other alien races and eventually become an intergalactic power. Still doesn't make it any easier to tell the people on the Mars station that they're all about to die.
 * The mission leader was also inspired by a Dalek not exterminating her during the events of "Journey's End."
 * Don't forget the Doctor not only letting but causing the Vesuvius eruption that destroyed the city of Pompeii. The alternative was to let the Pyroviles take over the world.
 * Non-time-travel example that is both subversion and lampshading: in Chuck we learn that Chuck flunking out of Stanford was part of an attempt by his friend/rival to keep him from joining spy work. Of course, it didn't quite work out that way.
 * In Miami Vice, the two detectives come together over the loss of their partner/brother.
 * The difference between Ace Rimmer (what a guy!) and the loser Rimmer in Red Dwarf is that Ace was held back in school one year. It made him determined to succeed.
 * Also, Tikka To Ride speculates on what would have happened had Oswald's attempt to assassinate John F Kennedy been unsuccessful. The answer is not pretty.
 * In the Star Trek: The Original Series episode "The City on the Edge of Forever", Kirk realizes he must allow his Love Interest Edith Keeler to die in order to prevent a nuclear war--and the triumph of Nazi Germany in World War II.
 * In the Lost episode "The Little Prince," the time-flashing characters discover they've jumped to the night Boone died and Aaron was born. Locke sees the light from the hatch, and knows the earlier version of himself is nearby, but walks away.

Locke: Why would I wanna do that?

Sawyer: So you could tell yourself to do things different, save yourself a world of pain.

Locke: No, I needed that pain to get to where I am now."


 * The sixth season seems to be going for a hefty helping of this in its Alternate Universe.
 * The first season of Heroes demonstrates how this can overlap with Well-Intentioned Extremist. The episode explaining 's motivations is titled ".07%" after the percent of the world's population he's going to wipe out as part of his plan for world peace. (Incidentally, in the scenes set in the future, it didn't work.)
 * How I Met Your Mother goes into this occasionally: for example, "Lucky Penny" shows how Ted needed to miss out on his dream job because it would have moved him to Chicago, meaning that he would not have met his future wife.
 * In Misfits, former Olympic-standard athlete Curtis re-winds time to prevent himself getting arrested for cocaine possession (an event that ruined his career) but after he does this, it becomes apparent that
 * One Sabrina the Teenage Witch episode had Sabrina go back to the past to try to stop the event that made her and Harvey had a fallout. She is unsuccesful in it but eventually learns that the event was necessary for her and Harvey to understand each other better, so she just apologizes and they make out.
 * In Stargate SG-1 (and its movie), Jack O'Neill's son's death (he shot himself with Jack's own gun) is a major angst point, and it's clear that Jack blames himself for what's happened. However, it was because of Jack's suicidal depression in the movie that he was selected to go through the Stargate, and his history with the Stargate is what brings him back in the series. If his son hadn't died, SG-1 as we know it wouldn't have existed. And let's not even speculate what would have happened in episodes like Lost City, without the easy availability of, say, Jack's.
 * Also John Sheppard in Stargate Atlantis, whose reputation was ruined by his ill-fated attempt to rescue his friends in Afghanistan against direct orders. Had this not happened, he would've likely not been found to have an ATA gene and a natural knack at using it (on par with O'Neill) and wouldn't have ended up as part of the Atlantis mission. It would've likely failed without him. Ditto for Eli Wallace in Stargate Universe, who was forced to drop out of MIT when his mother contracted HIV from a patient of hers. He probably wouldn't have spent his time playing MMORPGs and solving puzzles that the government had secretly planted there. He wouldn't have ended up on the Destiny and saved their hides multiple times.
 * On Deep Space Nine it is the defeat Starfleet suffered at the hands of the Borg that directly led to the design and construction of the Defiant class of ships. These came in handy when the war with the Dominion broke out.
 * This seems to be part of the Origin Story for many of the major races. After the Vulcans nearly warred themselves to extinction, they embraced logic and became a major starfaring power in the quadrant. So too, the brutal third world war humanity survived caused humans to embrace peace and turn their science from war and violence to space exploration and other peaceful goals. The Klingons even get in on the act, as their history states, that it was Klingons overthrowing an alien race that enslaved them that led to them becoming the Proud Warrior Race.
 * On 30 Rock, Liz called Jack a "Class A Moron" in front of a reporter. After she was quoted anonymously in print, Jack told Liz that as a child he was, coincidentally enough, labeled a "Class A Moron" by the Massachusetts Public School System and subsequently put in a weird special education class. Liz invokes this trope by telling him that having to overcome that made him the man he is today.
 * Despite the stigma of the "cursed jacket" from an episode of Better with You, the characters realize that the horrible failures they suffered while wearing it actually led to something better. In one story, if his jacket hadn't fallen, interfering with the game and causing the Yankees to lose, giving him the stigma of "that guy who screwed the Yankees," he would have fallen to his death instead.
 * In the Charmed episode 'There's Something About Leo,' Leo, who had recently become an Avatar, wanted to be able to convince Piper that the Avatars were not a threat by revealing to her that he had become one. Though the other Avatars did not agree with this decision (on the grounds that it would be better for her and her sisters to discover on their own), they allowed him to try. This all led to a chain of events that resulted in Leo nearly being killed by a potion designed to kill Avatars. And, so, when Alpha and Beta used some of their gathered power to reverse time to just before Leo had told Piper about his alliegence, he kept quiet about it this time.
 * The 'freak mishap' Ranger 3 suffers is the only reason Captain Rogers survives the oncoming nuclear war that wipes out much of civilization and is able to return to help a newly united Earth battle it's foes in the future.

Music

 * The opera Beethoven's Last Night revolves around Fate giving Beethoven the chance to erase miserable moments from his life. In each instance, Beethoven discovers his misery, heartbreak, and eventual deafness all contributed to his incredible music. In the end, Beethoven refuses to erase even a single moment.

Video Games

 * In Final Fantasy VI, Locke's failure to in his Backstory gave him his hatred of The Empire and his protective nature towards women in trouble, causing him to rescue two pivotal characters throughout the plotline.
 * In Chrono Trigger Lucca fails to rescue her mother from being maimed by a machine. Her failure drives her to become a mechanical genius, so that she will never fail again.
 * Interestingly explored in the webcomic Captain SNES, where proves detrimental to Lucca's parents' emotional growth.
 * In Dragon Age: Origins,
 * Alternate Character Interpretation in that.
 * In World of Warcraft, this is half of the point behind the Caverns of Time. Some force is trying to manipulate the past to prevent the evil warlock from opening the portal for the Orcs to invade Azeroth, and your job is to guarantee the invasion is successful because it will later cause various races to put aside their differences and band together against the Burning Legion. One expansion later, the bad people go into the past to prevent the prince from crossing the Moral Event Horizon by slaughtering a town full of innocents, and your job is to keep him alive so he can kill them all.
 * Some quest lines require the player to be fooled by a villain into helping him before they can proceed to bash his head in.
 * Including one that starts around level 10, and ends at level 80ish
 * Command and Conquer: Red Alert essentially invokes this, by having the plot of the games be the huge global conflict and Timey-Wimey Ball repercussions that results when Einstein prevents World War Two.
 * Shirou tries to convince Saber this in the Fate arc of Fate Stay Night, and in doing so comes to an epiphany about his own Survivors Guilt. The necessity of destroying the Grail makes this moot.
 * Star Trek: Borg: When you're part of an Away Team beamed aboard a Borg cube, you have to take the option to disregard what your fandom sense tells you, and start a fight with a few Borg drones who would have ignored you otherwise, even though you inevitably lose and get assimilated. This means you get the access codes to the cube's systems, and once Q sends you back in time to try again you use them to your advantage.

Web Comics

 * Captain SNES explores the consequences of a Set Right What Once Went Wrong subquest in Chrono Trigger in this strip.

Religion

 * The Christian concept of felix culpa (blessed fault) considers the expulsion of Adam and Eve from the Garden of Eden to have been ultimately good, as it allowed for Jesus' birth.
 * Milton, in Paradise Lost, suggests that an act of disobedience was necessary to give humanity free will, saving it from a meaningless existence. Jesus' birth is more of a way to fix the problems that went along with it, and apparently, he already existed anyway... It's complicated.
 * This is also one of the arguments in theodicy (the defense of the power and goodness of God despite the existence of evil): that sometimes suffering produces good consequences which could not have occurred any other way.

Western Animation

 * In Avatar: The Last Airbender, Zuko spends most of the show angsting about his banishment, scar and what a disappointment he's been to his father. Finally,

Real Life

 * Tyler Perry, creator of the popular stage plays and movies featuring Mable "Madea" Simmons, used his abusive childhood and depression to help form the basis of his movies which often feature people overcoming similar ordeals through faith in God, hope, and love.
 * A great many writers/creators have a similar backstory. For example Joanne Rowling has stated that dealing with the loss of her own mother as well as coping with being an unemployed single mother led to many of themes that would become famous in Harry Potter.
 * Self-publishing phenom Amanda Hocking says that it was her childhood depression that spurred her writing career.
 * James Cameron's career had stalled out with a failed attempt to direct the B-horror movie Piranha 2. This career bust and his subsequent bout with food poisoning resulted in a delirious episode and hospital stay in Italy. During this time he crafted another B-movie about a killer cyborg on a rampage. That was pretty much the last time fail and James Cameron appeared in the same sentence.
 * George Lucas wanted to be a race-car driver, but a crash preempted that career path. He turned is attention to making movies instead.
 * This is commonly referenced in many religions as an explanation/justification/excuse when bad things occur to followers, typically expressed as "God works in mysterious ways."
 * The investigation into the pad fire which took the lives of the Apollo 1 crew revealed a number of major design flaws in the spacecraft which might otherwise have gone undetected until later in the program and could have resulted in the United States missing the end-of-decade deadline for a manned lunar landing set by President Kennedy.
 * Robert Downey, Jr. almost destroyed an acting career that seemed destined for greatness through heavy drug use, but thankfully he sought help and was able to overcome his drug addictions. The experience probably made him the perfect fit to play a rich genius who cares little for the consequences of his lifestyle, hits rock bottom, and finds redemption as a superhero.