Narrative:

While switching left fuel selector from inboard to outboard, left engine quit. While determining cause, aircraft lost 900 ft. Controller asked if I was having a problem. I told him that the left engine quit and I was working on it. I returned the fuel selector to inboard and the left engine relit. I then climbed back to my chosen altitude of 5500 ft.

Google
 

Original NASA ASRS Text

Title: PA27 PLT HAD ALT EXCURSION IN CLT CLASS B AIRSPACE.

Narrative: WHILE SWITCHING L FUEL SELECTOR FROM INBOARD TO OUTBOARD, L ENG QUIT. WHILE DETERMINING CAUSE, ACFT LOST 900 FT. CTLR ASKED IF I WAS HAVING A PROB. I TOLD HIM THAT THE L ENG QUIT AND I WAS WORKING ON IT. I RETURNED THE FUEL SELECTOR TO INBOARD AND THE L ENG RELIT. I THEN CLBED BACK TO MY CHOSEN ALT OF 5500 FT.

Data retrieved from NASA's ASRS site as of July 2007 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.