Sometimes, what you try may not work. That’s a blessing in disguise. Perhaps, there is a better way to do it. It is all up to you as to how you take it. (Motivational Quotes)
Once you take the failed attempt as a learning and find better options, there is every possibility that it will work. All you need to do is start finding a better way and not go backwards in cases of failures in life.
"If you think you can do it, you can." - John Burroughs