The Worst Kind of Failure is the Failure to Try.
So, you tried something and it did not go as planned. What did you learn from it? What was the take away?
It happens to all of us. To learn from it and apply that to the next project. That's when you will succeeed.