Sweep1 on polyline creates disconnected surfaces

It’s because you are using a polyline for the Sweep1 rail instead of a smooth curve, as I believe you were told in this duplicate thread: