Failure is inevitable, so the key to success is to be good at learning from it. The ability to capitalize on hard-won experience is a hallmark of the greatest organizations — the ones that are most adept at turning knowledge into action, that are best at developing and implementing creative ideas, that engage in evidence-based (rather than faith- or fear-based) management, and that are populated with the best bosses.
Failure instructs. In fact, there is no learning without failure — and this includes failing at dangerous things like surgery and flying planes. Discovery of the moves that work well is always accompanied by discovery of moves that don't.