Narrative:

During pattern work; switched tank to fullest and selector valve wasn't seated into the indent. Upon turn to downwind; engine quit. Because of low altitude; I elected [advised ATC] to clear traffic and get aircraft safely back to runway.

Google
 

Original NASA ASRS Text

Title: Piper PA28 pilot reported an engine failure caused by mismanagement of the fuel tank sector valve.

Narrative: During pattern work; switched tank to fullest and selector valve wasn't seated into the indent. Upon turn to downwind; engine quit. Because of low altitude; I elected [advised ATC] to clear traffic and get aircraft safely back to runway.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.