If we are not attached to an outcome and instead we stay consciously focused on the joy of doing in the present moment, then the outcome will sort itself out. If we are only focused on the end result, the doing becomes a means to an end, and the work, or the doing, is not of the quality required to achieve the desired outcome.
Doing is a thing we can only do now, so when we put all our attention and awareness to that process and stay away from the distractions of the mind, then we achieve the things we want, free from stressing about it.
Negativity hampers our efforts and that negative energy comes from the constant thought about the final result.
Enjoy the doing not the end.