If there is water in the pipe, you can't sweat copper. Since you can't heat water above 212 degrees, you can't get the pipe/joint hot enough for solder to flow. It's true if you're trying to sweat a new joint or an old one.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.