Dozens were walking along a scenic footpath on the rock wall at Provincetown when they became stranded Sunday afternoon.