Surface extrude revolves around rail. How to extrude surface correctly?

I used a Gumball+Alt to copy a surface end from my stair half-round. I now want to extrude the surface along the curve/rail. (I know how to extrude a curve on a rail, but was looking at other methods) The attached pic is the result I get. what am I doing wrong?

Hi CalypsoArt - use Sweep1 here.

-Pascal

When I use sweep1 I get the error “Unable to order shapes on rails.”

Probably the profile is not joined into a single curve.

-Pascal

try DupBorder on the surface then sweep the resulting curve
?

(then Cap)

This is a good command to know. It worked for me.