My zucchini plants, which I have in pots, have produced a lot of flowers but no fruit has developed. We have fed them and they are in the sun most of the day. Last year they produced a lot.
My Zucchini Plants Have a Lot of Flowers but Are Not Producing Fruit
Certified GKH Gardening Expert
It sounds like a pollination problem. These articles will help: