It's hard to say what went wrong without being there, but other than scrupulous cleaning of the pipe and valve and using quality flux and solder, my best guess is that it's a heat issue - as in not enough.
The valve body is a big heat sink, and where it's pretty easy to solder a pipe into a low...