Solid by sweep 2 rails doesnt work

i have try made a solid by sweep 2 rails, but it doesnt work with rectan or poly cuver although it work well by circle